| | |
Linker question
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
I am writing an app right now that needs winmm.lib. I tried typing winmm.lib in the project properties under the correct section, but kept saying that does not exist. So i did a little research and found that if i type -lwinmm it works. I am using dev-c++. Can anyone tell me why this is and how the syntax worked? Thanks
>That confuses me =(
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
Get used to it. Good programmers are in a constant state of confusion.
>Looks like i have some quasi specifics to investigate! Up Up And AWAY!
•
•
Join Date: May 2009
Posts: 109
Reputation:
Solved Threads: 16
Standard unix style static library syntax is:
And you specify this to the GNU linker (used by dev-c++) using the -l option by name only:
The linker will then resolve this to the filename of the library.
libName.libAnd you specify this to the GNU linker (used by dev-c++) using the -l option by name only:
-lNameThe linker will then resolve this to the filename of the library.
![]() |
Similar Threads
- Another [Linker error] undefined reference to `WinMain@16' (C++)
- We Need SEO Linker Trainees (Internet Marketing Job Offers)
- Linker in c (C)
- Linker errors using HWND (C++)
- Linker Error (C++)
- Linker Errors (C++)
- A quick question, about compiling... (C++)
- Doubts in C (C++)
- Basic C Question (C)
- Changing Network Configuration (*nix Software)
Other Threads in the C++ Forum
- Previous Thread: Simple AES with SHA (as hash) encryption
- Next Thread: read a text file, find max value, and output new line
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer display dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator givemetehcodez graph homeworkhelp iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multiple newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg simple sorting spoonfeeding string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






