- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all,
I am trying to migrate a project from gcc to icc (Linux!).
A part of this project is a static library mylib.a, which is part of the SDK shipped with the product and which is to be linked statically into some client application.
When the library is generated using icc, I get:
undefined reference to `_intel_fast_memcpy'
diagnostics, if I use gcc for building an application with it.
I understand, that '_intel_fast_memcpy' is defined in libirc.a, which comes with icc.
Hence, if I add -lirc to the gcc command line, the application is built correctly.
But, as I cannot expect anyone using the SDK to habe libirc.a on his system, I'd like to have these externals resolved before shipping the library.
I neither want to ship libirc separately with the SDK, nor do I want to use icc's -nolib-inline option.
Is there another way to resolve this dilemma?
Thanks for any suggestions!
I am trying to migrate a project from gcc to icc (Linux!).
A part of this project is a static library mylib.a, which is part of the SDK shipped with the product and which is to be linked statically into some client application.
When the library is generated using icc, I get:
undefined reference to `_intel_fast_memcpy'
diagnostics, if I use gcc for building an application with it.
I understand, that '_intel_fast_memcpy' is defined in libirc.a, which comes with icc.
Hence, if I add -lirc to the gcc command line, the application is built correctly.
But, as I cannot expect anyone using the SDK to habe libirc.a on his system, I'd like to have these externals resolved before shipping the library.
I neither want to ship libirc separately with the SDK, nor do I want to use icc's -nolib-inline option.
Is there another way to resolve this dilemma?
Thanks for any suggestions!
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you try this?
-ffreestanding
compile in a freestanding environment where the standard library
may not be present

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