| | |
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 array arrays based beginner binary bmp c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete deploy desktop dll download dynamic encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib library lines linkedlist linker list loop looping loops map math matrix memory microsoft newbie news number output pointer problem program programming project python random read recursion recursive reference return simple spoonfeeding string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






