On Fri 12 Jun 1:14 2009 Hendrik Sattler wrote:
> Am Donnerstag 11 Juni 2009 14:24:30 schrieb e...@cs.bgu.ac.il:
> > On Thu 11 Jun 15:15 2009 Mike Jackson wrote:
> > > ADD_EXECUTABLE(prog main.cpp class.cpp)
> >
> > actually, I've tried that but the program crashes instantly...
>
> Then something
Am Donnerstag 11 Juni 2009 14:24:30 schrieb e...@cs.bgu.ac.il:
> On Thu 11 Jun 15:15 2009 Mike Jackson wrote:
> > ADD_EXECUTABLE(prog main.cpp class.cpp)
>
> actually, I've tried that but the program crashes instantly...
Then something is wrong in your code. Which platform are you on? Can you
pro
On Thu 11 Jun 15:15 2009 Mike Jackson wrote:
> ADD_EXECUTABLE(prog main.cpp class.cpp)
>
> On Thu, Jun 11, 2009 at 7:52 AM, e...@cs.bgu.ac.il wrote:
> >
> > hello.
> > I've got a class in a folder that I want to run from a main.cpp file, when
> > I compile it, I get a undefined reference to the
ADD_EXECUTABLE(prog main.cpp class.cpp)
On Thu, Jun 11, 2009 at 7:52 AM, e...@cs.bgu.ac.il wrote:
>
> hello.
> I've got a class in a folder that I want to run from a main.cpp file, when I
> compile it, I get a undefined reference to the class's methods.
> do I must create a lib from that single c
hello.
I've got a class in a folder that I want to run from a main.cpp file, when I
compile it, I get a undefined reference to the class's methods.
do I must create a lib from that single class in order to get the linking
working?
the CMakeList.txt looks like this:
ADD_LIBRARY(lib1 STATIC ${lib