Linking Error with xCode

Russell Edwards rje106 at googlemail.com
Wed Apr 2 11:08:26 PDT 2008


Hello all

i am currently trying to compile a little test application in xCode  
and am
having some problems. All xcode reports is "build failed one error",  
but doesn't
bring up anything in the error part of the project window. If i turn  
on Zero link
the compile succeeds but the application fails to run with the following
message

"target has exited due to signal 6 (SIGABRT)."

Because of this and because the linker is the last process that shows  
up as
being run before the error is shown, i think that its the linker  
that's failing

I have set the project up as the as shown in the WX book and the wiki: -

	putting the parts of the output of wx-config --cxxflags that begin  
with -D
		into targets / build/ / language / other c++ flags

	putting the parts of the output of wx-config --cxxflags that beign  
with -l
		into target / build / search paths / Header Search Paths (less the
		 -l part)

	putting the output of wx-config -- libs into targets / build /  
linking / other
	linker flags

my project files are all located in the same directory and are as  
follows : -

wxTest.cpp
	#include wxTest.h
	#include myFrame.h
	#include wx/wx.h

wxTest.h
	#include wx/wx.h

myFrame.cpp
	#include wx/wx.h
	#include myFrame.h

myFrame.h
	#include wx/wx.h

the header files are encased in #ifndef #endif takes to stop multiple
declarations.

can anyone help please?

Many Thanks

Russell



More information about the wx-users mailing list