Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=3198143
By: susanner
Hello!
this is a newbie question.
The situation: we are working on our first C++ project. The first task is to
take over code written with MSVC++. Since we used to work on Linux, I translated
the *.mak MSVC++ Makefiles to GNU Makefiles (hopefully right) and now try to
compile the code with g++, using MinGW. At the moment I am stuck, haveing no
idea how to move on with all the 'undefined reference' errors (and I don't really
want to give up; BTW: it compiles fine with MSVC++).
A small example:
gcc -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32
-loleaut32 -luuid -lodbc32 -lodbccp32 -lws2_32 -lnetapi32 -lpdh -lism -mconsole
-mwindows -mcpu=i386 -nodefaultlibs -L"../library/Release" -o Release/ismagt.exe
./agent.o ./hbpoll.o ./http.o ./main.o ./monval.o ./policy.o ./socket.o
./thread.o
c:/DATEN/devel/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/../../../crt2.o(.text+0x16
):crt1.c: undefined reference to `_CRT_glob'
c:/DATEN/devel/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/../../../crt2.o(.text+0x34
):crt1.c: undefined reference to `__getmainargs'
c:/DATEN/devel/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/../../../crt2.o(.text+0x47
):crt1.c: undefined reference to `_CRT_fmode'
I would like to have a better understanding to know if porting is really possible...
so, does anybody have hints for documentation, HowTos, etc. which could be usefull
for us?
Thank you!
Susanne
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=286529
|