Skip to main content

Thread: Using private headers/libraries g++


i having troubles using private libraries/header files.
i'm using stanford libraries school.
there .lib file placed in /usr/local/lib
, few header filed placed in /usr/local/include/cs106
, /usr/local/include/cs106/include

whenever compile g++ -o test sample1.cpp
error

sample1.cpp:13:20: fatal error: genlib.h: no such file or directory
compilation terminated.

mean can't find header file?
how make detect.
i've read dynamic , static libraries, header file.
know header called library.

i've seen g++ using wall argument, thats create library believe.

if tell me how make g++ compiler auto-detect headers , libraries great.

quote posted jabrick view post
i having troubles using private libraries/header files.
i'm using stanford libraries school.
there .lib file placed in /usr/local/lib
, few header filed placed in /usr/local/include/cs106
, /usr/local/include/cs106/include

whenever compile g++ -o test sample1.cpp
error

sample1.cpp:13:20: fatal error: genlib.h: no such file or directory
compilation terminated.

mean can't find header file?
how make detect.
i've read dynamic , static libraries, header file.
know header called library.

i've seen g++ using wall argument, thats create library believe.

if tell me how make g++ compiler auto-detect headers , libraries great.
thanks
you should read -i<dir> directive of gcc


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Using private headers/libraries g++


Ubuntu

Comments

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support