- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have an assembly function (say A). In my C code, I declare the function with extern "C" { void A(int val); }; In a class, there is a function delcared B, that is calling A inline :class test
{
//other stuff
void B(int val)
{
A(val);
};
};
The combination of the class header file, the class implementation file and the assembler file is putted in a library after compilation. The main project uses the library, but the linker can not find the assembler routine. If I change the B() function to a non-inline one, it works. Do I need to add somewhere a specific option to tell the compiler/linker how to find it?? Help appreciated. Stefaan.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
nobody ever tried the same, and found a solution?
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page