From: Guenter <gue...@on...> - 2013-01-03 10:16:41
|
Am 02.01.2013 19:38, schrieb Manolo: > In order to include wx headers it's a good practice to write: > #include "wx/file.h" > instead of > #include "file.h" > where 'file.h' is the header needed. This way you can avoid > using other headers with the same name (i.e. bitmap.h) but from > another library. > > wx is organized in a way that many other .h files will also be > automatically included from -in your case- 'C:\wxWidgets\include' > > So, you just need to add "-IC:\wxWidgets\include" to g++ command > line and mingw will find 'wx/file.h' in that directory. > > The PATH variable is mainly used for executables (consider a .dll > also as a executable file) not for headers. > > > ------------------------------------------------------------------------------ > Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery > and much more. Keep your Java skills current with LearnJavaNow - > 200+ hours of step-by-step video tutorials by Java experts. > SALE $49.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122612 > _______________________________________________ > MinGW-users mailing list > Min...@li... > > This list observes the Etiquette found at > http://www.mingw.org/Mailing_Lists. > We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. > > _______________________________________________ > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > Also: mailto:min...@li...?subject=unsubscribe Thank you for understanding my problem and your help. With g++ -IC:\wxWidgets\include xxx.cpp it works without error message by the way, it seems to be commen sense that the PATH variable does not work for headers, but not for me. It was the first time I got this information. |