Hi everyone! this is my first time in this forum! =D
I have this little minor problem... I don't know how to add a library to my C::B project.
Im using C::B in win xp sp3
I Have an OpenGL+Glut project (I managed to create it using the project wizard) and everithing runs smooth...
Now I am in a need of some extra functionality for my project, so I googled a while and I found a mention of this library "mkOpenGLJPEGImage":
http://pheatt.emporia.edu/courses/2003/cs410s03/hand02/hand02.htmThe home page of that library is non existing nowadays.
This is a quote from the help file that came with the library:
Adding the class to your MSVC++ project
To use the mkOpenGLJPEGImage class in your software, you need to do the following.
Copy the mkOpenGLJPEGImage.h header file into the source code directory or some into a directory in the "Include Files Path".
Add the mkOpenGLJPEGImage.h header file to your project as a source code file. This is not necessary but it allows MSVC to pop up completion boxes for the class which is always helpful.
Copy the mkOpenGLJPEGImage.lib library into either a directory in the "Library Files Path" or into the source code directory itself.
Add the mkOpenGLJpegImage.lib library to the project's "Object/Library Modules" under Project>Settings>Link>General
Now you're ready to compile your programs using the class.
I tried to add the libraries, I added the ".h" to my project, then added the ".dll" to the folder where the exe is compiled. Finally I went to "Project->Build Options->Linker settings" and added the path to the .lib file.
I compile and everithing goes OK till it gets to the linker time when I get this message:
"ld.exe cannot find -lmkOpenGLJPEGImage.lib"
By the way, the files for the library are:
mkOpenGLJPEGImage.h
mkOpenGLJPEGImage.dll
mkOpenGLJPEGImage.lib
Can anyone point me in the right direction here? Because I searched all over the web and I can not get it to work, I dont know why.
I also read in another topic that if you put the library on the left side, It will get te prefix "-l" so I also tried adding "l" and "-l" to the ".lib" file and nothing.
I also added it on the right side like this: "-mkOpenGLJPEGImage.lib" and I told the compiler to search in the folder where the .lib file was. But that time I got compiler errors, the same I get if I remove the .lib file from the left side of the linker settings.
Thanks for reading my post!
See you later!