English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

pls post code if ever thanks!

2006-09-01 05:40:32 · 2 answers · asked by solomon_wong11 1 in Computers & Internet Programming & Design

2 answers

Include the header file(s) for the library:



Then to link in the library, look in your project options or settings for linker settings. There should be a place to type in the name of the library. There's often another place nearby to specify what directories to search for the libraries. For example, in MS Visual C++ 6.0, go to Project/Settings, click on the Link tab, and add the library to the ones listed in "Object/library modules". Choose "Input" from the "Category" drop-down list, and and put the library's directory in "Additional library path".

2006-09-01 06:14:46 · answer #1 · answered by rainfingers 4 · 0 0

If you are using gcc, just add "-static" option to your compile command line.

For example,
gcc -static -g -Wall -o myprog myprog.c ...

2006-09-01 06:45:17 · answer #2 · answered by churinga 2 · 0 0

fedest.com, questions and answers