Hi,
thanks for the reply.
I have more details now as im actually sat on the linux box
This is the start of the output from the make command:
mark@suse:~/Documents/Development/Hello> make
g++ -c HelloWorld.cpp -o hw.o
In file included from /usr/local/include/wx/defs.h:23,
from /usr/local/include/wx/wx.h:15,
from HelloWorld.cpp:4:
/usr/local/include/wx/platform.h:85:22: wx/setup.h: No such file or directory
In file included from /usr/local/include/wx/platform.h:88,
from /usr/local/include/wx/defs.h:23,
from /usr/local/include/wx/wx.h:15,
from HelloWorld.cpp:4:
/usr/local/include/wx/chkconf.h:47:9: #error "wxUSE_DYNLIB_CLASS must be defined."
/usr/local/include/wx/chkconf.h:55:9: #error "wxUSE_FILESYSTEM must be defined."
/usr/local/include/wx/chkconf.h:68:9: #error "wxUSE_DYNAMIC_LOADER must be defined."
/usr/local/include/wx/chkconf.h:76:9: #error "wxUSE_LOG must be defined."
/usr/local/include/wx/chkconf.h:84:9: #error "wxUSE_LONGLONG must be defined."
My makefile looks like this:
#
# Makefile for Hello World
#
# To execute clean even if a file called clean exists
.PHONY: clean
# Variables
CFLAGS = -O0 -Wall -time # For debug
#CFLAGS = -O3 -time # For release
CC = g++
TARGET = hw
# Objects to get linked
OBJECTS = hw.o
# Main compilation routine
$(TARGET): $(OBJECTS)
$(CC) $(CFLAGS) $(OBJECTS) -o $(TARGET) -I/usr/local/include -L/usr/local/lib -lwx_gtk2.4
# Compile objects
hw.o: HelloWorld.cpp HelloWorld.h
g++ -c HelloWorld.cpp -o hw.o
# Clean directory
clean:
rm -frv *.o hw
Any help much appreciated!