-
loading libraries
i have implemented music in one of my programs using the windows multimedia library winmm.lib, but to get my program to run on a different machine i have to go to properties..links and add winmm.lib before my code will compile...is there any way i can hard code it into my program?
-
under includes, no semi on the end:
#pragma comment(lib, "winmm.lib")
-
-
what does the name comment have to do w/anything, or is it just like a variable name
i want to do winmm.lib and fmodvc.lib so would it look like this...
#pragma comment1(lib, "winmm.lib")
#pragma comment2(lib, "fmodvc.lib")
-
I think it would still just be #pragma comment( lib, "whatever.lib" ) for both, but I'm not sure.
-
just comment, heres right outt one of my programs
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")
#pragma comment(lib, "glaux.lib")