Hi! Is it possible to compile the test program ŽhelloŽ using the g++ compiler. I get an error message 1) main.cpp:37: undefined reference to `__throw' ...if I link main.o and crt0.o with the ld linker, and 2) crt0.o(.text+0x0): multiple definition of `_start' /usr/lib/crt1.o(.text+0x0): first defined here ...if I try to link the files with g++ -o xxxx. Can somebody help me? Chris -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Christian Stueble............stueble@ls6.cs.uni-dortmund.de PubKey[BF7104F5].......fp=8678C5D3CAD9CD8C F1DDB8EC202F116A To be or not to be is true... (apocrypha of George Boole) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
I played a little with gcc command line options and I found a way to suppress the error messages below: gcc -g -O2 -o Application -nostartfiles -Wl,-N,-Ttext,0x300000\ -L../oskit/lib -L../l4/lib -L..lib main.o crt0.o\ -lmc -loskit_support -llmm -lkern -lcore with libcore containing c++-code. Is this the correct way to use c++? Am Sat, 20 Nov 1999 schrieben Sie:
Hi!
Is it possible to compile the test program ŽhelloŽ using the g++ compiler. I get an error message
1) main.cpp:37: undefined reference to `__throw' ...if I link main.o and crt0.o with the ld linker, and
2) crt0.o(.text+0x0): multiple definition of `_start' /usr/lib/crt1.o(.text+0x0): first defined here ...if I try to link the files with g++ -o xxxx.
-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Christian Stueble............stueble@ls6.cs.uni-dortmund.de PubKey[BF7104F5].......fp=8678C5D3CAD9CD8C F1DDB8EC202F116A To be or not to be is true... (apocrypha of George Boole) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
participants (1)
-
Christian Stueble