Re: link error: undefined reference

Andrew Haley <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
On 30/03/10 19:27, Keith wrote:
> Environment is Windows XP, gcj 4.4.0, compiling under MSYS
> The final error I have is:
> 
> C:\DOCUME~1\Keith\LOCALS~1\Temp\ccXVrvPx.o:cc8hZGFd.i:(.text+0x29):
> undefined reference to `com::performanceplanningsystem::ui::PPS::class$'
> collect2: ld returned 1 exit status

This is because you're mixing -findirect-dispatch and
-fno-indirect-dispatch, which doesn't work.  Compile the executable
with -findirect-dispatch too.

Andrew.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.