SourceForge Logo
Hosted by SourceForge
Project page


If you have other questions, pls let me know, so I can update the site.

1. What is PortableGUI?

Huh? Don't you know already? Take a look here.

2. My compiler complains about carriage returns

If your compiler spits out nonsense like:

You are probably using Windows sources.
To convert them to Unix format, use Hany's 'dos2unix' tool.
I use the next shell script to convert the whole source tree.

dos2unix -U `find -name "*.cpp"`
dos2unix -U `find -name "*.h"`
dos2unix -U `find -name "Makefile"`

2. Make says '' Heeeeeelp!

Your Makefile was edited in Windows and contains carriage returns.
'dos2unix -U Makefile' will solve this. See also 'My compiler complains about CRs'.

3. I get linking errors

In Windows/MSVC 4.0 linking errors look like this (a lot of strange @@ signs):
link.exe kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib..
helloworld.obj  pgcomponent.obj pgcontainer.obj pgapplication.obj  pgobject.obj pgstring.obj pgvector.obj...
pgframe.obj : error LNK2001: unresolved external symbol "private: void __thiscall PGFrame::init(char *,int)"(?init@PGFrame@@AAEXPADH@Z)
./HelloWorld.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link.exe' : return code '0x19'
In Unix/gcc they look like this:

You probably left out one of the object files.
'grep' or 'Find in files' says init(..) is in pgframe(win/gtk).cpp so probably pgframe(win/gtk).o(bj) was not passed to the linker. Make a new target for pgframe(win/gtk).o(bj) in the makefile and add it to the list of object files.

Back to PortableGUI