View previous topic :: View next topic |
Author |
Message |
21582 n00b
Joined: 31 May 2003 Posts: 20
|
Posted: Sat Jun 28, 2003 1:46 pm Post subject: Compiling with icc+imlib |
|
|
Hi,
I'm having a slight problem: I've written a C++ programm that uses the imlib-library for accessing images. I'm currently trying to compile my 2 source files with icc (Version 7.1), however I'm having problems linking my compiled code to the imlib-library.
Thats what icc gives me:
ipo_iccbidmy3Sl.o(.text+0x28f31): In function `sciimage::sciImage::display()':
: undefined reference to `XCreateWindow'
[... and so on for all imlib-calls]
I'm using the following flags:
icc -Kc++ -I/usr/lib -O3 -i_dynamic -xW -ipo -march=pentium4 -mcpu=pentium4 sciimage.cpp
I always thought binaries generated with gcc 3.2.2 are compatible to icc 7.1.
Any suggestions? |
|
Back to top |
|
|
21582 n00b
Joined: 31 May 2003 Posts: 20
|
Posted: Sat Jun 28, 2003 2:55 pm Post subject: |
|
|
I've found the problem: "-ipo"
Setting the flags to
CXXFLAGS = -c -Kc++ -i_dynamic -ipo_obj -O3 -xW -march=pentium4
and linking with
icc test.o sciimage.o -o view -lImlib
works fine now.
Just a pity that the icc-Version is slower then g++ with -march=pentium3... |
|
Back to top |
|
|
21582 n00b
Joined: 31 May 2003 Posts: 20
|
Posted: Sat Jun 28, 2003 2:56 pm Post subject: |
|
|
double post |
|
Back to top |
|
|
|