|
|
|
|||||
|
Here is a simple example that fails. I am running RedHat 9 with all
patches. The problem seems to be that the __F__Control class is defined twice in test.cpp outside of any namespace. Thus the two Control classes cause the generation of conflicting names. I originally ran into this with the conflicting classes in two separate ice files. That results in a segmentation fault in a runtime static constructor. Am I breaking some Ice coding rule? By the way, this all works in Java. I am using a recent download of Ice 1.4.0. I also see this in 1.3.0. Jim cat test.ice #ifndef TEST_ICE #define TEST_ICE module A { class Control { string name; }; }; module B { class Control { double a; }; }; #endif slice2cpp test.ice c++ -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5) c++ -g -pipe -ftemplate-depth-128 -fPIC -Wall -D_REENTRANT -I. -I$ICE_HOME/include -c test.cpp test.cpp:449: redefinition of `class __F__Control' test.cpp:286: previous definition of `class __F__Control' test.cpp:449: confused by earlier errors, bailing out |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| slice2freeze correct header with --output-dir option | acbell | Patches | 9 | 11-29-2005 12:56 PM |
| Java Object Output Stream and Ice | brian | Help Center | 8 | 10-31-2005 10:18 AM |
| slice2cs - no output | kwaclaw | Help Center | 8 | 06-24-2005 06:52 PM |
| Redirecting icepacknode output | Nis Baggesen | Help Center | 2 | 02-23-2005 03:56 PM |
| Compile error, slice2cpp, VC7 | Kaos | Help Center | 2 | 05-06-2004 11:22 AM |