|
From: chengyi l. <lcy...@gm...> - 2006-08-15 09:18:19
|
Hello:
I downloaded the open1451-gaithersburg-1.00 recently, and built it in my
Linux system, and having some difficulty in the compile process, the error
is :
make[2]: Leaving directory `/opt/open1451-gaithersburg-1.00/ieee1451'
make[2]: Entering directory `/opt/open1451-gaithersburg-1.00/NCAPS'
make[3]: Entering directory `/opt/open1451-gaithersburg-1.00/NCAPS/tempncap'
GNUmakefile: /opt/open1451-gaithersburg-1.00/NCAPS/tempncap/GNUmakefile
MAKEFLAGS=w -- OPERATION=all LDOPTIONS=-g CCOPTIONS=-g INSTALL=
OPERATION=all DIRS=ieee1451 NCAPS MKOPTS=CCOPTIONS=-g LDOPTIONS=-g X=x
CCOPTIONS=-g LDOPTIONS=-g OPERATION=all
g++ -fvisibility=hidden -fvisibility-inlines-hidden -W -Wall -Wpointer-arith
-O3 -g -pipe -DUSE_ACE_TASKS -Wno-unused -I. -D_REENTRANT
-DACE_HAS_AIO_CALLS -D_GNU_SOURCE -I../../ieee1451 -I/opt/ACE
-DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -c -o .obj/tempNCAP.o tempNCAP.cpp
In file included from
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/backward/iostream.h:31,
from ../../ieee1451/root.h:19,
from ../../ieee1451/entity.h:23,
from ../../ieee1451/block.h:18,
from ../../ieee1451/ncap.h:20,
from 1451.h:17,
from tempNCAP.h:17,
from tempNCAP.cpp:14:
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated
header. Please consider using one of the 32 headers found in section
17.4.1.2 of the C++ standard. Examples include substituting the <X> header
for the <X.h> header for C++ includes, or <iostream> instead of the
deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
g++ -fvisibility=hidden -fvisibility-inlines-hidden -W -Wall -Wpointer-arith
-O3 -g -pipe -DUSE_ACE_TASKS -Wno-unused -I. -D_REENTRANT
-DACE_HAS_AIO_CALLS -D_GNU_SOURCE -I../../ieee1451 -I/opt/ACE
-DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -L../../ieee1451 -Wl,-E
-L/opt/ACE/ace -L./ -o tempNCAP .obj/tempNCAP.o -l1451 -lACE -ldl -lpthread
-lrt
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../crt1.o(.text+0x18): In
function `_start':
: undefined reference to `main'
collect2: ld return 1
make[3]: *** [tempNCAP] error 1
make[3]: Leaving directory `/opt/open1451-gaithersburg-1.00/NCAPS/tempncap'
make[2]: *** [all] eror 1
make[2]: Leaving directory `/opt/open1451-gaithersburg-1.00/NCAPS'
make[1]: *** [all] error 1
make[1]: Leaving directory `/opt/open1451-gaithersburg-1.00'
make: *** [all] error 2
In my system the kernel number is Fedora core 4,the gcc version is 4.0.0,
and the gcc configure is:
../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --enable-threads=posix --enable-checking=release
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions
--enable-libgcj-multifile --enable-languages=c,c++,objc,java,f95,ada
--enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--host=i386-redhat-linux
Does anybody have an idea of what might be causing this error? Can you give
some a method?
Thank for any help!
chengyi li
|
|
From: Andrew S. <and...@gm...> - 2006-08-15 10:34:05
|
Hello, Chengyi, looks like g++ cannot find main() definition. In the folder tempNCAP there is a file tempMain.cpp. Try to compile it separately and then add to the list of object files for linking. Or add it to Makefile. I remember I was able to compile tempNCAP manually from the command line, and linked object files into executable successfully. Regards, Andrew Stepanenko. On 8/15/06, chengyi li <lcy...@gm...> wrote: > Hello: > I downloaded the open1451-gaithersburg-1.00 recently, and built it in my > Linux system, and having some difficulty in the compile process, the error > is : > make[2]: Leaving directory `/opt/open1451-gaithersburg-1.00/ieee1451' > make[2]: Entering directory `/opt/open1451-gaithersburg-1.00/NCAPS' > make[3]: Entering directory > `/opt/open1451-gaithersburg-1.00/NCAPS/tempncap' > GNUmakefile: /opt/open1451-gaithersburg-1.00/NCAPS/tempncap/GNUmakefile > MAKEFLAGS=w -- OPERATION=all LDOPTIONS=-g CCOPTIONS=-g INSTALL= > OPERATION=all DIRS=ieee1451 NCAPS MKOPTS=CCOPTIONS=-g LDOPTIONS=-g X=x > CCOPTIONS=-g LDOPTIONS=-g OPERATION=all > g++ -fvisibility=hidden -fvisibility-inlines-hidden -W -Wall > -Wpointer-arith -O3 -g -pipe -DUSE_ACE_TASKS -Wno-unused -I. > -D_REENTRANT -DACE_HAS_AIO_CALLS -D_GNU_SOURCE -I../../ieee1451 -I/opt/ACE > -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -c -o .obj/tempNCAP.o tempNCAP.cpp > In file included from > /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/backward/iostream.h:31, > from ../../ieee1451/root.h:19, > from ../../ieee1451/entity.h:23, > from ../../ieee1451/block.h:18, > from ../../ieee1451/ncap.h:20, > from 1451.h:17, > from tempNCAP.h:17, > from tempNCAP.cpp:14: > /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/backward/backward_warning.h:32:2: > warning: #warning This file includes at least one deprecated or antiquated > header. Please consider using one of the 32 headers found in section > 17.4.1.2 of the C++ standard. Examples include substituting the <X> header > for the <X.h> header for C++ includes, or <iostream> instead of the > deprecated header <iostream.h>. To disable this warning use -Wno-deprecated. > g++ -fvisibility=hidden -fvisibility-inlines-hidden -W -Wall > -Wpointer-arith -O3 -g -pipe -DUSE_ACE_TASKS -Wno-unused -I. > -D_REENTRANT -DACE_HAS_AIO_CALLS -D_GNU_SOURCE -I../../ieee1451 -I/opt/ACE > -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -L../../ieee1451 -Wl,-E > -L/opt/ACE/ace -L./ -o tempNCAP .obj/tempNCAP.o -l1451 -lACE -ldl -lpthread > -lrt > /usr/lib/gcc/i386-redhat-linux/4.0.0/../../../crt1.o(.text+0x18): > In function `_start': > : undefined reference to `main' > collect2: ld return 1 > make[3]: *** [tempNCAP] error 1 > make[3]: Leaving directory `/opt/open1451-gaithersburg-1.00/NCAPS/tempncap' > make[2]: *** [all] eror 1 > make[2]: Leaving directory `/opt/open1451-gaithersburg-1.00/NCAPS' > make[1]: *** [all] error 1 > make[1]: Leaving directory `/opt/open1451-gaithersburg-1.00' > make: *** [all] error 2 > > > In my system the kernel number is Fedora core 4,the gcc version is 4.0.0, > and the gcc configure is: > ../configure --prefix=/usr --mandir=/usr/share/man > --infodir=/usr/share/info --enable-shared --enable-threads=posix > --enable-checking=release --with-system-zlib --enable-__cxa_atexit > --disable-libunwind-exceptions --enable-libgcj-multifile > --enable-languages=c,c++,objc,java,f95,ada > --enable-java-awt=gtk > --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre > --host=i386-redhat-linux > > Does anybody have an idea of what might be causing this error? Can you give > some a method? > > Thank for any help! > chengyi li > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > Open1451-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/open1451-devel > > > |