Quantcast
Channel: Keil Discussion Forum RSS Feed
Viewing all articles
Browse latest Browse all 3049

C166: Calling C++ from C (3 Replies)

$
0
0
I'm testing some ideas using the EC++ compiler for C166. I've found that when I want to call a C function from a C++ file I have to prototype the function extern "C" void myfunc(void); I'm struggling to find how to call a function in a C++ from a C file. I can see from the m66 file that a function in a cpp file gets named myfunc__Fv. I can prototype my function void myfunc__Fv(void); and it compiles OK. Is there a directive that tells the compiler t

Viewing all articles
Browse latest Browse all 3049

Trending Articles