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.