Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compiling with icc+imlib
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
21582
n00b
n00b


Joined: 31 May 2003
Posts: 20

PostPosted: Sat Jun 28, 2003 1:46 pm    Post subject: Compiling with icc+imlib Reply with quote

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
View user's profile Send private message
21582
n00b
n00b


Joined: 31 May 2003
Posts: 20

PostPosted: Sat Jun 28, 2003 2:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
21582
n00b
n00b


Joined: 31 May 2003
Posts: 20

PostPosted: Sat Jun 28, 2003 2:56 pm    Post subject: Reply with quote

double post :roll:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum