Re: [CMake] Fwd: Fwd: Is it necessary to link a executable file?

2009-02-04 Thread Nick Ogden
That's because a library doesn't need a main() function. It's just a set of functions that may be called by applications and is never executed by itself, however an executable needs a point of entry and therefore needs a main() function. On Wednesday 04 February 2009 10:51:31 ankit jain wrote:

Re: [CMake] Fwd: Fwd: Is it necessary to link a executable file?

2009-02-04 Thread ankit jain
2009/2/4 Eric Noulard > 2009/2/4 ankit jain : > > > > The CMakeLists iam using contains: > > > > PROJECT(hello) > > > > ADD_EXECUTABLE(hello h1.C) > > > > Error iam getting is: > > > > Linking CXX executable hello > > /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crt1.o(.text+0x18): In > > fu

Re: [CMake] Fwd: Fwd: Is it necessary to link a executable file?

2009-02-04 Thread Eric Noulard
2009/2/4 ankit jain : > > The CMakeLists iam using contains: > > PROJECT(hello) > > ADD_EXECUTABLE(hello h1.C) > > Error iam getting is: > > Linking CXX executable hello > /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crt1.o(.text+0x18): In > function `_start': > : undefined reference to `main'

[CMake] Fwd: Fwd: Is it necessary to link a executable file?

2009-02-04 Thread ankit jain
-- Forwarded message -- From: ankit jain Date: 2009/2/4 Subject: Re: [CMake] Fwd: Is it necessary to link a executable file? To: Eric Noulard 2009/2/4 Eric Noulard 2009/2/4 ankit jain : > >> > >> 2009/2/4 ankit jain : > >> > >> > Actually in this case i dont want to create