User forums > Help

Doesn't build since rev 3050 (at least for MacOSX?)

<< < (2/3) > >>

afb:

--- Quote from: bnilsson on October 14, 2006, 09:09:16 pm ---Lately I have got the following build problem:
....
/usr/bin/ld: Undefined symbols:
wxFlatNotebook::SetSelection(unsigned long)
wxFlatNotebook::SetGradientColorTo(wxColour const&)
wxFlatNotebook::SetGradientColorFrom(wxColour const&)
wxFlatNotebook::SetGradientColorBorder(wxColour const&)
wxFlatNotebook::GetSelection() const
collect2: ld returned 1 exit status

--- End quote ---

Reproduced. Looks like a wxMac issue.

afb:
The issue seems to be that it is linking towards "wxFlatNotebookBase" while declaring "wxFlatNotebook".


--- Code: ---$ grep -r ZN14wxFlatNotebook12SetSelectionEm .
Binary file ./src/sdk/.libs/editorbase.o matches
Binary file ./src/sdk/.libs/editormanager.o matches
Binary file ./src/sdk/.libs/libcodeblocks.0.0.1.dylib matches
Binary file ./src/sdk/.libs/libcodeblocks.0.dylib matches
Binary file ./src/sdk/.libs/libcodeblocks.dylib matches
Binary file ./src/sdk/.libs/messagemanager.o matches
Binary file ./src/sdk/.libs/projectmanager.o matches
Binary file ./src/src/app.o matches
Binary file ./src/src/main.o matches

--- End code ---


--- Code: ---$ grep -r ZN18wxFlatNotebookBase12SetSelectionEm .
Binary file ./src/sdk/.libs/libcodeblocks.0.0.1.dylib matches
Binary file ./src/sdk/.libs/libcodeblocks.0.dylib matches
Binary file ./src/sdk/.libs/libcodeblocks.dylib matches
Binary file ./src/sdk/wxFlatNotebook/.libs/libwxflatnotebook.a matches
Binary file ./src/sdk/wxFlatNotebook/.libs/wxFlatNotebook.o matches

--- End code ---


--- Code: ---$ echo __ZN14wxFlatNotebook12SetSelectionEm | c++filt
wxFlatNotebook::SetSelection(unsigned long)
$ echo __ZN18wxFlatNotebookBase12SetSelectionEm | c++filt
wxFlatNotebookBase::SetSelection(unsigned long)

--- End code ---

eranif:
The class wxFlatNotebookBase is no longer exist ... check you header files and make sure that you are up to date.
Eran

afb:
Yup, had removed the old libs but had some old stray headers left.


--- Code: ---sudo rm -r /usr/local/include/codeblocks

--- End code ---

It would be nice if the build scripts (i.e. autotools) could be fixed,
so that it looks in the local dirs before it looks in the system dirs... ?

It also fails to link if you have e.g. an unicode wx in $PREFIX and
a ansi wx in /usr/local, to name a common example that I run into

Moral: make sure to you remove all the objects, and headers too!

afb:
It also seems like "make clean" missed to clean up src/sdk/wxFlatNotebook/.libs ?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version