![]() |
PortableGUI |
Hosted by SourceForge Project page |
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.
#!/bin/sh
dos2unix -U `find -name "*.cpp"`
dos2unix -U `find -name "*.h"`
dos2unix -U `find -name "Makefile"`
link.exe kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib..In Unix/gcc they look like this:
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'
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