Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - pkg_add: (2 Items)
   
pkg_add  
I have added glib2 and gnet using pkg_add. But if I try to compile a simple Hello World program with #include <gnet.h> 
and #include <glib.h> the compiler returns errors. The errors are glib.h and gnet.h: No such file or directory. I am 
trying to use the libraries on much bigger projects, but this hello world is just a test to see if I can use gnet and 
glib. This is all done in a VMware QNX target system under the Terminal.

Any help would be appreciated.

JP 
Re: pkg_add  
On Thu, Aug 19, 2010 at 12:09:44PM -0400, Jay Patel wrote:
> I have added glib2 and gnet using pkg_add. But if I try to compile a simple Hello World program with #include <gnet.h>
 and #include <glib.h> the compiler returns errors. The errors are glib.h and gnet.h: No such file or directory. I am 
trying to use the libraries on much bigger projects, but this hello world is just a test to see if I can use gnet and 
glib. This is all done in a VMware QNX target system under the Terminal.
> 
> Any help would be appreciated.
> 

You probably have to add -I /usr/pkg/include/? to point the compiler in
the correct location.  And this probably belongs in one of the pkgsrc
discussion groups.

Regards,

-seanb