|
From: SourceForge.net <no...@so...> - 2003-12-04 16:36:36
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2317717 By: justinbeattie Hello people, I`m having a problem using the setupapi library with MinGW. I basically have a "hello world" win32 app that calls SetupDiGetClassDevs(), but whenever I try to compile I get a "test.o(.text+0x2eb):test.o: undefined reference to `_imp__SetupDiGetClassDevsA@16'" error. I`m using MinGW-3.1.0-1.exe on Win2kPro, and for the life of me, I can`t figure out what`s wrong. I considered submitting this as a bug report, but I held back in case I`m doing something tremendously stupid. The search paths in the ld scripts are all bang on - right into the /lib (\lib) folder, and I even tried passing the direct path to the linker, but I still get the same error. Here`s how I compile and link: windres -o testrc.o testrc.rc gcc -c test.c -mwindows gcc -o test.exe test.o testrc.o -mwindows and for the last line, sometimes I do: gcc -o test.exe -lsetupapi test.o testrc.o -mwindows ...but to no avail. Thanks for any help you can give me, you guys rock. ______________________________________________________________________ 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=286641 |