nanogui: can not compile my own app with microwindows api
Subject:
can not compile my own app with microwindows api
From:
####@####.####
Date:
24 Mar 2004 09:55:59 +0000
Message-Id: <1080124924.406165fcc72b5@konplan.com>
Hi,
I have install 0.87 microwindows version in linux 8.1.
i can run all demos(nonox & microwin api) and my own nanox application,
but can not compile my own microwindows application with microwindows api.
i saved mtest demo under hellowin.c
i try:
gcc hellowin.c -o hellowin -lmwdrivers -lmwengine -lmwfonts -lmwimages
-lmwinlib -lnwidget -lvncauth -I/home/yidrissi/microwin/src/lib -L
/home/yidrissi/microwin/src/lib
but kamm errors:
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../crt1.o(.text+0x18): undefined
reference to `main'
/tmp/cc0Qt8VG.o: In function `WinMain':
/tmp/cc0Qt8VG.o(.text+0x55): undefined reference to `GetStockObject'
/tmp/cc0Qt8VG.o(.text+0x7b): undefined reference to `RegisterClass'
/tmp/cc0Qt8VG.o(.text+0xaa): undefined reference to `CreateWindowEx'
/tmp/cc0Qt8VG.o(.text+0xbe): undefined reference to `ShowWindow'
/tmp/cc0Qt8VG.o(.text+0xcc): undefined reference to `UpdateWindow'
/tmp/cc0Qt8VG.o(.text+0xde): undefined reference to `GetMessage'
/tmp/cc0Qt8VG.o(.text+0xf3): undefined reference to `TranslateMessage'
/tmp/cc0Qt8VG.o(.text+0x102): undefined reference to `DispatchMessage'
/tmp/cc0Qt8VG.o: In function `wproc':
/tmp/cc0Qt8VG.o(.text+0x147): undefined reference to `BeginPaint'
/tmp/cc0Qt8VG.o(.text+0x15c): undefined reference to `GetClientRect'
/tmp/cc0Qt8VG.o(.text+0x177): undefined reference to `DrawTextA'
/tmp/cc0Qt8VG.o(.text+0x189): undefined reference to `EndPaint'
/tmp/cc0Qt8VG.o(.text+0x198): undefined reference to `PostQuitMessage'
/tmp/cc0Qt8VG.o(.text+0x1ae): undefined reference to `DefWindowProc'
collect2: ld returned 1 exit status
can anybody help me
thanks
youssef