Mail Archives: djgpp/1997/12/11/07:48:58
>
>To resolve these problems, surround your C headers with
>
>#ifdef __cplusplus
>extern "C" {
>#endif
>
>[your prototypes go here]
>
>#ifdef __cplusplus
>}
>#endif
>
>This makes that the compiler tell the linker that it has to search for a
>_SVAsyncProtISR, not a _SVAsyncProtISR__Fi or whatever.
>
>
Thanks to all who sent in the above (which of course worked) and kindly
didn't comment on what a dimboid I was being. When I used to link Ada to
C routines, I had to specify pragma 'c', so I should have realised I had
to tell gcc something similar. What lulled me into a false sense of
security was that a couple of years ago, I wrote a lot of Visual C++
which used a c library (which I had modified & converted to a dll), and
never had to tell it about the C - and it seemed to work ok.
Thanks again
--
Caroline Langensiepen
- Raw text -