Hi everybody,
I'm creating a uno component to be able to solve some constraint
satisfaction problems using the gecode solver.
For the moment, I made a component that write in a file and then launch
another process to read the file and use gecode.
What I want to do is manage to integrate the whole in the component to
avoid writing and reading a file.
I've got two problems to do that :
First :
_______
In my included files, two appears to have the same name and I need the
two ( /usr/include/boost/static_assert.hpp and
$(HOME)/ooo-build/scratch/solver/680/unxlngi6.pro/inc/boost/static_assert.hpp)
The fact is that it's the bad one that's used for gecode...
Is there a way to define a priority ?
Second :
________
Avoiding this problem by delete all openoffice code in the file for
gecode and by removing the
-I(HOME)/ooo-build/scratch/solver/680/unxlngi6.pro/inc to compile the
file,
I have a error anyway that I don't really understand. Here it is :
----------------------------------------------------------------------
/usr/bin/g++ `pkg-config --libs --cflags gecode gecode-minimodel
gecode-search` -DDEBUG -Wall -Os -mtune=pentium4 -I../../../source/inc
-I. -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3 -DHAVE_GCC_VISIBILITY_FEATURE
-DENABLE_SCSOLVER_UNO_ALGORITHM \
-o demo.o -fPIC -fno-rtti -fno-common -export-dynamic
-fvisibility=hidden ../../../source/numeric/demo.cxx
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/crt1.o: In function
`_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
----------------------------------------------------------------------
It seems that the compiler wants a main function but I don't have one...
(without the demo.cxx file, my component is compiling and works fine.)
Can somebody help me ?
Thank your very much in advance,
Mikael
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]