syam prasad wrote:
Hi Jim,
With the solution given by you my problem solved. Thanks for ur
valuable suggestion. Really I am tired in overcoming this problem from
last 3 days.
I placed -mno-cygwin in my makefile.mk and DLL is loading into
simulator without giving any trouble to me. But I am in doubt that ,
IDE I am suing is cygwin and supposed to use cygwin libraires, doesn't
it rises any trouble?
I'm not sure I understand the question. If you are using the 'user32'
library then you are not building a Cygwin DLL, you are building a
Windows DLL. I don't know of any limitation to a Cygwin application
using a Windows DLL so I do not see an issue with using your DLL with an
application that is using Cygwin.
If you are using a Cygwin application, what functionality are you using
in User32 that is not available via the Cygwin API's?
Thanks,
nsp
On 8/1/07, syam prasad <nagabhairu.syam@xxxxxxxxx> wrote:
I installed gcc 3.4.4 and bale to compile the sources properly using
makefiles. Problem I am facing is with DLL. When I tried to build DLL
it is giving eerror as
/cygdrive/c/cygwin/bin/ld: cannot find -luser32
collect2: ld returned 1 exit status
make: *** [prog] Error 1
If you want to use the w32api libs, I believe you have to pass the
"-mno-cygwin" option to the compiler so it builds a native Windows
application instead of a Cygwin application.
I searched all the mailing lists and found the answer to re install
W32app package. But I cross checked with my installed files and
folders and found that "libuser32.a" exists.
If I copy libs in w32api to C:\cygwin\lib, DLL build is completed
sucessfully. But facing problem with simulator. DLL is not loading
into simulator, Simulator got hanged. My simulator lies in different
PC ( XP/ Intel processor ). But I am able to build exe and test it
properly.
My system configuration:
OS : Microsoft Windows XP [Version 5.1.2600]
Processor : AMD Athlon
GCC : gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
GCC configuration :
Reading specs from /cygdrive/c/cygwin/bin/../lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with:
/usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --verbose
--prefix=/usr --exec-prefix=/usr --
sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib
--mandir=/usr/share/man --infodir=/usr/share/info --enable-langu
ages=c,ada,c++,d,f77,pascal,java,objc --enable-nls
--without-included-gettext --enable-version-specific-runtime-libs --w
ithout-x --enable-libgcj --disable-java-awt --with-system-zlib
--enable-interpreter --disable-libgcj-debug --enable-thre
ads=posix --enable-java-gc=boehm --disable-win32-registry
--enable-sjlj-exceptions --enable-hash-synchronization --enabl
e-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Please help me in resolving this issue. Thanks in advance.
nsp
--
Jim Marshall
Sr. Staff Engineer
WBEM Solutions, Inc.
978-947-3607