delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/12/13/15:58:32

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: Using window classes
13 Dec 1998 15:58:32 -0800 :
Message-ID: <199812131918.NAA11494.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <7a47b4a7 DOT 3672a9f5 AT aol DOT com>
To: JSONCRAIG AT aol DOT com
Cc: gnu-win32 AT cygnus DOT com

JSONCRAIG AT aol DOT com writes:
> I am trying to create a system global class windows in my program.  when I tr
> y
> to compile it it says this...

(fyi, it's "link", not "compile" step that complains).

> 
> proj.o(.text+0x202):proj.cc: undefined reference to `TheProc__FPvUiUil AT 16'
> collect2: ld returned 1 exit status
> 
> do I need to link something extra?  If so what?
> 

Please always specify the compiler version and the platform you're using
whenever reporting problems like this. ``gcc -v'' reports the version and
platform info.

The symbol it's looking for:
  
  % echo TheProc__FPvUiUil | c++filt
  TheProc(void *, unsigned int, unsigned int, long)

The linker is looking for a WINAPI/STDCALL version this method, and can't
find it. Either the prototype doesn't match or you're not linking with the
right library. 

You probably just forgot to use `extern "C"' when compiling the
implementation of TheProc.
  
No way to tell without more details.

Regards,
Mumit

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019