[Dev-C++] Linker error: Newbie question
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Chauncey W. <cw...@tw...> - 2003-04-05 00:52:55
|
Hi all, I just joined the list, and am also just starting out on windows = programming. =20 I have been able to get my console applications to compile and link just = fine, but with the 2 simple windows programs (beyond Hello World) that I = have made, I have gotten linker problems (compile log included). I = suspect I have to add libraries to the command line, but beyond that I = am pretty lost. I've been googling for a while (probably not looking in = the right places). I'm sure this has been discussed somewhere before, = but my searches on the sourceforge forums have likewise left me high and = dry. Any help would be greatly appreciated. Oh, Dev-C++ v.4.9.7.8 / 3.2 <compile log> Building Makefile: "C:\My Documents\random = code\CWin\random\Makefile.win" Executing make... make.exe -f "C:\My Documents\random code\CWin\random\Makefile.win" all gcc.exe sysmet.o -o "SysMet.exe" -L"C:/Dev-Cpp/lib"=20 sysmet.o(.text+0xc14):sysmet.c: undefined reference to = `GetStockObject@4' sysmet.o(.text+0xd61):sysmet.c: undefined reference to = `GetTextMetricsA@8' sysmet.o(.text+0xe56):sysmet.c: undefined reference to `TextOutA@20' sysmet.o(.text+0xeac):sysmet.c: undefined reference to `TextOutA@20' sysmet.o(.text+0xebc):sysmet.c: undefined reference to `SetTextAlign@8' sysmet.o(.text+0xf1f):sysmet.c: undefined reference to `TextOutA@20' sysmet.o(.text+0xf2f):sysmet.c: undefined reference to `SetTextAlign@8' Execution terminated |