link error: undefined reference

Andrew Haley aph@redhat.com
Wed Mar 31 07:46:00 GMT 2010


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.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /