- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
When compiling a source file with the use of function memmem (from C standard lib), icc fails and gives such error info:
*****error #140: too many arguments in function call*****
Actually the use of memmem in the code is straightforward and correct. Both gcc and clang can compile it with no problem.
I wrote a piece of sample code:
--------------------------------------------------------
#include
const char *needle = "needle";
const char *hay = "needle in haystack";
int main() {
void *pos = memmem(hay, strlen(hay), needle, strlen(needle));
}
----------------------------------------------------------
You can try it and see if you have same problem.
My specs are:
OS: Linux 2.6.32-358 (x86_64)
icc: 14.0.2
glibc: 2.12
Do you have any ideas about this problem?
Thanks in advance.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I could reproduce the problem and have filed the issue with the developers and will get back to you as soon as I've an update. Appreciate your patience till then.
_Kittur

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