Talk:Setup.H
From WxWiki
[edit] Installed Path Locations
- You're absolutely right about setup.h being confusing. I'm using Eclipse with CDT and need to set up my paths, etc. It would be helpful if the paths shown were more complete, maybe even absolute paths for a single specific example. It would make it easier for users to morph the example to their specific environments.
- "There is one master setup.h which is located in include/wx/<your build platform>." I've just installed kubuntu wx-2.8. There is no setup.h file anywhere under /usr/include/wx-2.8. Hmmm. This means that hworld.cpp does not compile out of the box. Hmmm. Perhaps the maintainer of this page should add this fact to the article.
- How are the setup.h files found in the \lib\<compiler>\<build>\wx subdirectories related to the setup.h files in the \include subdirectories? My system has 22 setup.h files!
I've updated the page in an effort to answer all of the above questions. As a short answer, there isn't any specific, absolute path that setup.h is guaranteed to be at. That's why this tends to be confusing. You need to understand that different distributions install this file in different locations. However, this is why Wx-Config exists. It's purpose is to automatically inform your compiler about any necessary include paths, libraries, and any other preprocessor settings that need to be defined for your platform and configuration you want to use. --Tierra 01:40, 2 May 2008 (UTC)
