- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using icc 10.0 on linux. I have not been able to use static libraries with ipo. Any suggestions?
[rscohn1@vs-lin64-3 itest]$ ./build.csh
set CC=icc -ipo
set AR=xiar cru
cat foo.c
void foo(void)
{}
cat x.c
extern void foo(void);
main()
{
foo();
}
icc -ipo -c foo.c
icc -ipo -c x.c
rm foo.a
xiar cru foo.a foo.o
xiar: executing 'ar'
icc -ipo -o x.iponolib x.o foo.o
ipo: remark #11000: performing multi-file optimizations
ipo: remark #11005: generating object file /tmp/ipo_iccSfjJO2.o
icc -ipo -o x.ipolib x.o foo.a
ipo: warning #11041: unresolved foo
Referenced in /tmp/ipo_icc4KKyt5.o
ipo: remark #11001: performing single-file optimizations
ipo: remark #11005: generating object file /tmp/ipo_icc4KKyt5.o
/tmp/ipo_icc4KKyt5.o(.text+0x1b): In function `main':
: undefined reference to `foo'
[rscohn1@vs-lin64-3 itest]$
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My mistake. My path was picking up the 10.0 icc, but the 8.0 xiar. Using the correct xiar lets it link.
Robert
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page