-- Forwarded message --
From: ankit jain ankitgu...@gmail.com
Date: 2009/2/4
Subject: Re: [CMake] Fwd: Is it necessary to link a executable file?
To: Eric Noulard eric.noul...@gmail.com
2009/2/4 Eric Noulard eric.noul...@gmail.com
2009/2/4 ankit jain ankitgu...@gmail.com
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:
2009/2/4 ankit jain ankitgu...@gmail.com:
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
2009/2/4 Eric Noulard eric.noul...@gmail.com
2009/2/4 ankit jain ankitgu...@gmail.com:
The CMakeLists iam using contains:
PROJECT(hello)
ADD_EXECUTABLE(hello h1.C)
Error iam getting is:
Linking CXX executable hello