Plain; You can not. GCC does not have such an equivalent. Specify -l as the gcc parameter, create a script linker, call ld , call 911 or something else.
Not that such a pragma even made sense. Libraries should be indicated at the linking stage. Such information simply does not belong within the translation unit. The translation unit can be pre-processed, compiled and assembled even without a binding step. The tool binding used by Visual Studio allows this because it is a braindead and always performs the binding.
You might want to keep yourself tedious typing and create a MakeFile for your project: GNU Make Manual
Mads Elvheim Nov 06 '09 at 3:35 2009-11-06 03:35
source share