Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Apr 2003 22:12:16 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Konrad Scorciapino <fallenbr@uol.com.br>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: GCC and libraries
Message-ID:  <20030417031215.GF7923@dan.emsphone.com>
In-Reply-To: <200304170003.50430.fallenbr@uol.com.br>
References:  <200304170003.50430.fallenbr@uol.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Apr 17), Konrad Scorciapino said:
> I've installed wxWindows libraries, but got some errors when trying
> to compile some code that included them:
> 
> konrad@localhost ~/fonte/wx > g++ HelloWorldApp.cpp -o HelloWorldApp
> HelloWorldApp.cpp:1: wx/wxprec.h: No such file or directory
> HelloWorldApp.cpp:4: wx/wx.h: No such file or directory
> konrad@localhost ~/fonte/wx >
> 
> After searching, I found those files (wx.h and wxprec.h) at 
> /usr/X11R6/include... Do I need to configure anything to make gcc compile?

Add -I/usr/X11R6/include to your compile line, and -L/usr/X11R6/lib to
your link line.

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030417031215.GF7923>