I wonder if anyone can help me out. I have recently started programming with C++, and I am trying to create a portable application using the wxWindows API [http://www.wxwindows.org/
], using the free download of the Borland C++ compiler (bcc32) under WindowsXP. I have managed to follow the instructions in the wxWindows documentation and have installed the library into the default 'C:\wxWindows_2.4.0\' folder. bcc32 is installed into the default 'C:\Borland\ folder', and my source code is in 'C:\src\'. I have also compiled the library (producing a .lib file in 'C:\wxWindows_2.4.0\Lib\')
, and have successfully compiled and run a sample program supplied with wxWindows.
My problem is that when I try to compile a Hello World program, as described by the wxWindows tutorial, the compiler complains that it cannot find the 'wx/wx.h' header file that I am required to include in my source. I tried to solve the problem by copying the contents of 'C:\wxWindows_2.4.0\Includ
e\wx\' to 'C:\Borland\Include\wx', but the compiler then complained that it could not find the 'setup.h' header file which I think is required by the 'wx.h' header. I located 'setup.h' in another folder and copied this to 'C:\Borland\Include\wx' and tried to compile again, but this time the compiler complained that it could not find 'HelloWorldApp.h' - a header file written by me and placed into the same folder as the .cpp source file ('C:\src\'). I should mention that I am running the compiler from the 'C:\src\' folder when trying to compile my program, but I used the supplied makefile from inside the 'C:\wxWindows_2.4.0\Sample
s\' folder when I successfully built the sample program.
I think my problem is that I do not know how to set up the wxWindow library so that the compiler can find everything that it needs. Everything I have done up until now has just used the standard-library. I have triple checked my source code and I am confident that this is not causing any problems. Also I am trying to do everything from the command line, i.e. without an IDE. What is confusing me is that the sample apps provided with the library compile just fine, but my own app won't. Do I need to write a makefile for my app?
If anyone can help point me in the right direction I would be very grateful. Thanks for your time, and sorry for the long post :-)
P.S. I am aiming to write a DNA/protein sequence analysis application that will port between PC and Mac. If I ever get it working it will save myself and others a lot of time at work! It will be open source, free for academic/educational use, and probably licensed under the GPL.