This is the mail archive of the
mailing list for the Cygwin project.
Re: [gcc 3.2]: undefined symbols when compiling cygwin dll.
- From: Nicholas Wourms <nwourms at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 25 Aug 2002 11:20:52 -0700 (PDT)
- Subject: Re: [gcc 3.2]: undefined symbols when compiling cygwin dll.
--- Nicholas Wourms <firstname.lastname@example.org> wrote:
> I just wiped my cygwin install and started fresh with a new install
> based on gcc-3.2. As usual, I installed everything. I then
> proceeded to attempt compiling the cygwin dll (from cvs sources)
> using the following flags:
> CXXFLAGS="-I/usr/include/c++/3.2" ../src/configure
> Before I continue, let me state that the tree wasn't broken earlier
> today. Also, no commits have been made on the cygdaemon-branch
> then. That being said, the build process craps out when it is
> to link all the object files for the dll. Gcc states:
> undefined reference to `_FindAtomA@4'
> undefined reference to `_AddAtomA@4'
> undefined reference to `_GetAtomNameA@12'
> I'm not sure if this is a bug or me missing something, but I
> I'd report it anyway. Truth be told, I'm not terribly familiar
> the gcc sources, but I'll poke around to see what turns up. Also,
> note that I have verified that I have the proper packages necessary
> for gcc-3.2 installed.
Ok, I just remembered that those symbols are from kernel32.dll. So,
I went back and modified the arguments passed by make to compile the
cygwin dll, appending "-lkernel32" to the end of the line. Executing
the new command does, indeed, resolve the problem. So I guess one
would need to modify Makefile.in to link the dll with -lkernel32
appended to the list of arguments.
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html