- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My code works well on gcc, but doesn'ton icc.
...:warning #266:function declared implicitly
swab(....);
IPO Error: unresolved : swaw
Referenced in ....
in header file,'swab' and 'swaw' function are defined like
#define swab _swab
#if defined(_cplusplus)
extern "C"{
void swaw (short *form, short *to, int length);
}
#end if
link option is given like this:
icc xxx.o xxx.o -cxxlib-gcc -limf -O3
what's wrong?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
should use "icpc" because of the "#ifdef _cplusplus".
Jennifer
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