[Bug c/39662] segmentation failed on correctly compiled mixed C and C++ code

2009-04-22 Thread pavel dot petrovic at gmail dot com
--- Comment #4 from pavel dot petrovic at gmail dot com 2009-04-23 06:06 --- Thanks! it works. I was confused by this document: ftp://ftp.freepascal.org/pub/fpc/docs-pdf/CinFreePascal.pdf which seems to claim the opposite. -- pavel dot petrovic at gmail dot com changed:

[Bug c/39662] segmentation failed on correctly compiled mixed C and C++ code

2009-04-22 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-04-22 23:41 --- #ifdef __cplusplus #define EXPORTCALL __attribute__((stdcall)) #else #define EXPORTCALL #endif Is wrong, you need to use the same ABI for the function on both sides of the call, that is either use stdcall on both

[Bug c/39662] segmentation failed on correctly compiled mixed C and C++ code

2009-04-06 Thread pavel dot petrovic at gmail dot com
--- Comment #2 from pavel dot petrovic at gmail dot com 2009-04-06 12:28 --- *** Bug 39661 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39662

[Bug c/39662] segmentation failed on correctly compiled mixed C and C++ code

2009-04-06 Thread pavel dot petrovic at gmail dot com
--- Comment #1 from pavel dot petrovic at gmail dot com 2009-04-06 12:23 --- Created an attachment (id=17594) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17594&action=view) archive with all sources, and i. .ii, .s files -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39662