|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Cannot Mix C Code
I am trying to integrate C sources into the project (based on SimpleTemplate) but I am unable to call a C function from C++, since at runtime I receive an undefined reference error. I have tried to use both
/*C++ File*/ extern "C" { #include "cheader.h" } and /*cheader.h*/ extern "C" { void func(); } Any ideas? Could it be due to name mangling? Last edited by nabioullinr : 01-25-2010 at 08:31 PM. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cannot deploy code | Patrick Chiang | FRC Control System | 18 | 03-16-2013 03:46 PM |
| Cannot Download Code | mandalorethx | C/C++ | 5 | 01-15-2010 12:44 PM |
| Cannot get Code to Download to cRIO | greekgod8591 | C/C++ | 25 | 03-09-2009 10:10 PM |
| Cannot Download Code to our Robot | jcvd | C/C++ | 9 | 01-27-2009 01:09 PM |