I according to web : http://pocoproject.org/wiki/index.php/FirstStepsLinux
to build my first poco c++ program,
and I copy DateTimeSample.cpp to my Fedora 10 platform.
and copy Makefile :
include $(POCO_BASE)/build/rules/global # global rules: will find libs and include files for us
objects = DateTimeSample
target = DateTime
target_version = 1
target_libs = PocoFoundation
include $(POCO_BASE)/build/rules/exec #tells the Makefile we want to build an executable
,
system info :
Linux localhost.localdomain 2.6.27.5-117.fc10.x86_64 #1 SMP Tue Nov 18 11:58:53 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
but it report ERROR:
/home/talent/work/POCO_TEST//obj/Linux/x86_64/debug_static/DateTimeSample.o: In function `main':
/home/talent/work/POCO_TEST/src/DateTimeSample.cpp:11: multiple definition of `main'
/home/talent/work/POCO_TEST//obj/Linux/x86_64/release_shared/DateTimeSample.o:DateTimeSample.cpp:(.text+0x0): first defined here
/home/talent/work/POCO_TEST//obj/Linux/x86_64/release_static/DateTimeSample.o: In function `main':
DateTimeSample.cpp:(.text+0x0): multiple definition of `main'
/home/talent/work/POCO_TEST//obj/Linux/x86_64/release_shared/DateTimeSample.o:DateTimeSample.cpp:(.text+0x0): first defined here
/home/talent/work/POCO_TEST//obj/Linux/x86_64/debug_shared/DateTimeSample.o: In function `main':
/home/talent/work/POCO_TEST/src/DateTimeSample.cpp:11: multiple definition of `main'
/home/talent/work/POCO_TEST//obj/Linux/x86_64/release_shared/DateTimeSample.o:DateTimeSample.cpp:(.text+0x0): first defined here
collect2: ld returned 1 exit status
make: *** [/home/talent/work/POCO_TEST//bin/Linux/x86_64/DateTimeMy] ERROR 1
So I don't know how to eliminate these errors.
Please Help me!





