Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » undefined reference to EXTERNC c++ function in C(undefined reference to EXTERNC c++ function in C)
undefined reference to EXTERNC c++ function in C [message #1072890] Tue, 23 July 2013 14:21
Eclipse UserFriend
I have a EXTERNC c++ function prototype in a lcca.h file

EXTERNC int lccaReceive(lcca_ptr myLccaPtr, tHdb10Word* data,
UINT16 maxWords, UINT16 actualWords,
INT32 maxWaitMs, int bypassStats);

the definition of the function is in a lcca.cpp file

int lccaReceive(lcca_ptr myLccaPtr, tHdb10Word* data,
UINT16 maxWords, UINT16& actualWords,
INT32 maxWaitMs, int bypassStats){
Lcca* typedLccaPtr = static_cast<Lcca*>(myLccaPtr);
return typedLccaPtr->Receive(data, maxWords, actualWords,
maxWaitMs, !!bypassStats);

call the function in a lccaCall.c file , and lcca.h is included.
it errors out:

undefined reference to lccaReceive.

How to resolve it? Thanks for your help.
Previous Topic:PDOM in text form
Next Topic:undefined reference to EXTERNC c++ function in C
Goto Forum:
  


Current Time: Wed May 21 22:29:23 EDT 2025

Powered by FUDForum. Page generated in 0.03910 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top