The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => The Orphanage => Topic started by: revis on June 08, 2006, 08:56:48 PM

Title: ASM + CPP with gcc/gpp
Post by: revis on June 08, 2006, 08:56:48 PM
Hello all,
I have a problem, I have a class declared within main.cpp and there's the prototipe of a fuction like MyClass::Function(double); while the implementation is within an .s file, where I wrote the correct implementation. The problem is that gpp let me that don't know where to find the MyClass::Function(double)...

I have in .s file this:

.text
.global _function__8FunctionT0d
....
....
....


When I call it from main I get an 'undefined reference to ...'

Why with simple C function with extern "C" void FF(); the gpp found the function in the ASM file while with a class function not ?
If there's "the standard" problem, I can't use older versions, because with older version of gcc.exe and gpp.exe  I get "General Protection Fault" with my machine, I have an AMD Turion64.

Is there any way to link those files .s and .cpp with the version 2.03 of DJGPP?

Thanks,
Best regards.
Title: Re: ASM + CPP with gcc/gpp
Post by: gwapo on June 16, 2006, 08:28:33 AM
Revis,

Try the DJGPP community mailing list:
http://www.delorie.com/djgpp/mailing-lists

Cheers,

-chris