Click here to Skip to main content
15,889,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CMake whose "source directory" ? Pin
Vaclav_15-Nov-16 9:27
Vaclav_15-Nov-16 9:27 
AnswerRe: CMake whose "source directory" ? Pin
Vaclav_17-Nov-16 5:11
Vaclav_17-Nov-16 5:11 
QuestionEclipse IDE GCC linker options ? Pin
Vaclav_13-Nov-16 4:40
Vaclav_13-Nov-16 4:40 
AnswerRe: Eclipse IDE GCC linker options ? Pin
NotPolitcallyCorrect13-Nov-16 7:00
NotPolitcallyCorrect13-Nov-16 7:00 
AnswerRe: Eclipse IDE GCC linker options ? Pin
leon de boer13-Nov-16 15:17
leon de boer13-Nov-16 15:17 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Vaclav_13-Nov-16 16:42
Vaclav_13-Nov-16 16:42 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Richard MacCutchan13-Nov-16 21:42
mveRichard MacCutchan13-Nov-16 21:42 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Jochen Arndt13-Nov-16 21:49
professionalJochen Arndt13-Nov-16 21:49 
When passing library file names using the -l option strip of the lib prefix and the extension. If for example the file name is libcv2.so, pass -lcv2 as option.
See Link Options - Using the GNU Compiler Collection (GCC)[^].

If the library file does not match this style (lib prefix, .a or .so extension, or you want to link dynamically to a .so file but there is also a matching .a file), you can pass the full name with path as argument like for object files (gcc recognises if the file is an object file or a libray).

I can't help much regarding Eclipse. But a quick search shows that there are two different sections where you can configure libraries:

  1. The general library settings (C/C++ Properties - Folder - General - Paths and Symbols)
  2. The project and tool specific settings (C/C++ Properties - Project - Build - Settings - Tool Settings - Linker)

The first should be used for system wide general library paths while the second is for project specific settings. To add an object or library with full path and name, enter it at Miscellaneous - Other objects.
GeneralRe: Eclipse IDE GCC linker options ? Pin
leon de boer13-Nov-16 22:35
leon de boer13-Nov-16 22:35 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Vaclav_14-Nov-16 4:31
Vaclav_14-Nov-16 4:31 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Vaclav_14-Nov-16 5:08
Vaclav_14-Nov-16 5:08 
GeneralRe: Eclipse IDE GCC linker options ? Pin
leon de boer14-Nov-16 5:40
leon de boer14-Nov-16 5:40 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Vaclav_14-Nov-16 7:24
Vaclav_14-Nov-16 7:24 
GeneralRe: Eclipse IDE GCC linker options ? Pin
leon de boer14-Nov-16 14:43
leon de boer14-Nov-16 14:43 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Richard MacCutchan14-Nov-16 6:01
mveRichard MacCutchan14-Nov-16 6:01 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Jochen Arndt14-Nov-16 10:33
professionalJochen Arndt14-Nov-16 10:33 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Vaclav_14-Nov-16 13:16
Vaclav_14-Nov-16 13:16 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Richard MacCutchan14-Nov-16 20:55
mveRichard MacCutchan14-Nov-16 20:55 
QuestionNeed Help in writing a Windows device driver Pin
C++myLife11-Nov-16 1:37
C++myLife11-Nov-16 1:37 
AnswerRe: Need Help in writing a Windows device driver Pin
Jochen Arndt11-Nov-16 2:17
professionalJochen Arndt11-Nov-16 2:17 
AnswerRe: Need Help in writing a Windows device driver Pin
Eddy Vluggen11-Nov-16 2:34
professionalEddy Vluggen11-Nov-16 2:34 
GeneralRe: Need Help in writing a Windows device driver Pin
C++myLife14-Nov-16 0:23
C++myLife14-Nov-16 0:23 
GeneralRe: Need Help in writing a Windows device driver Pin
Eddy Vluggen14-Nov-16 3:49
professionalEddy Vluggen14-Nov-16 3:49 
QuestionGaneric Class Define Pin
bestbear10-Nov-16 18:27
bestbear10-Nov-16 18:27 
AnswerRe: Ganeric Class Define Pin
leon de boer10-Nov-16 19:04
leon de boer10-Nov-16 19:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.