--- Comment #6 from spop at gcc dot gnu dot org 2009-11-03 05:57 ---
Fixed in the graphite branch as explained above.
--
spop at gcc dot gnu dot org changed:
What|Removed |Added
--
With a C++ file as:
extern "C" {
typedef struct {} CvImage;
extern CvImage* Cv_ImageNew(void);
}
extern void _Raytrace(CvImage* LImage);
int main(int LArgC, char** LArgV)
{
CvImage* LImage = Cv_ImageNew();
_Raytrace(LImage);
}
--- CUT --
And a C file as:
typedef struct
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-11-03 06:30 ---
This works if both are compiled with the C++ front-end (and an extern "C" is
added to the definition of Cv_ImageNew).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41921
--- Comment #2 from pinskia at gcc dot gnu dot org 2009-11-03 06:31 ---
This works if the struct is named too.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41921
--- Comment #6 from rwild at gcc dot gnu dot org 2009-11-03 06:32 ---
Well, can you look in /c/Gcc/Build-4.5.0/intl/config.log to find out the
error underlying this failure, as the error message indicates?
--
rwild at gcc dot gnu dot org changed:
What|Removed
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-11-03 06:35 ---
It also works if I "convert" the C++ source into a C (removing the extern "C"
stuff).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41921
--- Comment #2 from uros at gcc dot gnu dot org 2009-11-03 07:53 ---
Subject: Bug 41900
Author: uros
Date: Tue Nov 3 07:53:05 2009
New Revision: 153838
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=153838
Log:
PR target/41900
* config/i386/i386.h (ix86_arch_ind
101 - 107 of 107 matches
Mail list logo