Skip to main content
gamedev.net
🔒 Locked

lib problem

Started by C plus noob 2 replies 600+ views
Original Post
C plus noob
C plus noob
i was reading a dirct X tutorial and it seems direct X has gone out of its way to make itself uncompatable with Dev Cpp If you'd like to compile everything, you have to link it with the following *.lib files: ddraw.lib dxguid.lib ..\..\lib\d3dframe.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib uuid.lib winmm.lib i saw that and i CAN LOAD THE .LIB FILES THAT CAME WITH DIRECT X i dont have the other ones :S but i think there different names in Dev Cpp there not .lib's but .a's instead and ive noticed different names before someone help me out!
Fruny
Fruny
foo.lib -> libfoo.a, linked with -lfoo
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Origanlmaxin
Origanlmaxin
hmm.. maybe your not linking the librarys correctly? ..

when you link them do you go:

Project>> Project Options.. then add the librarys to be linked there?

thats how ive been doing it and it works..

also the names are odd.. like to add the user32.lib file.. you gotta put in:

-luser32

everything seems to start with -l

sorry if thats not the problem you wanted solved
C plus noob
C plus noob
-l means the name is lib*.a if it starts with lib you can use -l

i dont have these .lib files so i need the a conversions

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.