RE: preprocessor/linker c++ error

2007-02-20 Thread Kevin Ross
> -Original Message- > From: ccostin [mailto:[EMAIL PROTECTED] > Sent: Monday, February 19, 2007 10:28 AM > To: debian-user@lists.debian.org > Subject: preprocessor/linker c++ error > > What's wrong with the followind C++ code ? > > $ cat file1.cc >

[OT] Re: preprocessor/linker c++ error

2007-02-19 Thread Jhair Tocancipa Triana
ccostin writes: > What's wrong with the followind C++ code ? > $ cat file1.cc > #include "file.hh" int a, b, c; > void f1(int x,int y, int z) > { >a=x; >b=y; >c=z; > } > $ cat file2.cc > #include "file.hh" > void f2(int x,int y, int z) > { >a=x; >b=y; >

Re: preprocessor/linker c++ error

2007-02-19 Thread Greg Folkert
Completely wrong list to ask. This appears to be a lesson from an instructor. BTW, you are missing something glaringly wrong. On Mon, 2007-02-19 at 20:27 +0200, ccostin wrote: > What's wrong with the followind C++ code ? > > $ cat file1.cc > #include "file.hh" > void f1(int x,int y, int z) > { >

preprocessor/linker c++ error

2007-02-19 Thread ccostin
What's wrong with the followind C++ code ? $ cat file1.cc #include "file.hh" void f1(int x,int y, int z) { a=x; b=y; c=z; } $ cat file2.cc #include "file.hh" void f2(int x,int y, int z) { a=x; b=y; c=z; } $ cat file.hh #ifndef _FIS_H_ #define _FIS_H_ in