Hi all,
I've installed last Dev-C++ version, installed ImageLib and WxWindows
packages, and tried to compile.
I got undefined reference errors, and I've linked the ole32.lib.
Any help?
Linker options:
-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -
ole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lcomctl32 -lrpcrt4 -
lwsock32 -lwinmm -lwx -lxpm -lpng -lz -ljpeg -ltiff
Here is the error message:
D:/tmp/david/Dev-Cpp/lib/libwx.a(app.o)(.text+0x447): undefined
reference to `InitCommonControls@0'
D:/tmp/david/Dev-Cpp/lib/libwx.a(app.o)(.text+0x451): undefined
reference to `OleInitialize@4'
D:/tmp/david/Dev-Cpp/lib/libwx.a(app.o)(.text+0x102a): undefined
reference to `OleUninitialize@0'
D:/tmp/david/Dev-Cpp/lib/libwx.a(utils.o)(.text+0x31e): undefined
reference to `WSAStartup@8'
D:/tmp/david/Dev-Cpp/lib/libwx.a(utils.o)(.text+0x348): undefined
reference to `gethostname@8'
[...] and so on
Command line shows as:
make.exe -f "D:\tmp\david\David\Atlantis\ah_2.1.5\Makefile.win" all
g++.exe ahapp.o ahframe.o cfgfile.o collection.o consts_ah.o cstr.o
data.o editpane.o editsframe.o errs.o files.o listpane.o mapframe.o
mappane.o msgframe.o objs.o optionsdlg.o parser.o unitframe.o
unitframefltr.o unitpane.o unitpanefltr.o utildlgs.o ah_private.res -
o "ah.exe" -L"D:/tmp/david/Dev-Cpp/lib" -L"/lib" -L"D:/tmp/david/Dev-
Cpp/lib" -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -
lshell32 -ole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lcomctl32 -
lrpcrt4 -lwsock32 -lwinmm -lwx -lxpm -lpng -lz -ljpeg -ltiff -
I"D:/tmp/david/Dev-Cpp/include" -I"D:/tmp/david/Dev-Cpp/include/g++-
3" -I"D:/tmp/david/Dev-Cpp/include" -D__GNUWIN32__ -W -finline-
functions -DNDEBUG -DWIN32 -D_WINDOWS -D__WINDOWS__ -D__WXMSW__ -
D__WIN95__ -D__WIN32__ -DWINVER=0x0400 -DSTRICT -s -mwindows
|