[galib] Problem executing GAlib example
Peter Jay Salzman
p at dirac.org
Fri Nov 30 10:32:27 EST 2007
Hi Shaiful,
You say you're new to VC++. I would recommend you use the compiler you're
used to. Especially if you're used to Linux, because GALib compiles
trivially on Linux. It ain't so trivial on Windows.
At a minimum, in properties:
C/C++
Additional Include Directories: ..\(galib library project)
Under "Command Line", this might be useful:
/D "_CRT_SECURE_NO_DEPRECATE"
Can't recall any further gotchas. Just have to plug away at it. It was
painful for me and took a few days. But I ended up learning VC++ a whole
lot better for it.
IIRC, the VC++ command line makefile also worked out of the box.
Oh, in your *example programs*:
1. Right click the project name, choose "References" click "Add New
Reference" and add a reference to the project that contains your GALib
souce code. You'll al
2. In "Additional Include Directories", add ..\(galib library project)
3. Under "Command Line", this might be useful:
/D "_CRT_SECURE_NO_DEPRECATE"
Again, I highly recommend you compile on Linux. Or use the VC++ command
line makefile, cl.exe. It's easier.
Pete
ps- I'm not kidding about the "How to Ask a Question" links. The first
lesson any programmer should learn is "post the error message".
The second lesson is to learn a text editor.
Once those two things are mastered, learning a language isn't a bad idea.
On Fri 30 Nov 07, 6:33 AM, Shaiful Islam <tipu_98_cse at yahoo.com> said:
> sorry for my previous mail, i couldn't explained my problem clearly, i am
> really sorry.
>
> my problem is when i execute the example 1 (GAlib 247) following error
> message is showing.
>
>
> c:\program files\microsoft visual studio\vc98\include\ga\gaid.h(29) :
> error C2061: syntax error : identifier 'GAID'
> c:\program files\microsoft visual studio\vc98\include\ga\gaid.h(29) :
> error C2059: syntax error : ';'
> c:\program files\microsoft visual studio\vc98\include\ga\gaid.h(29) :
> error C2449: found '{' at file scope (missing function header?)
> c:\program files\microsoft visual studio\vc98\include\ga\gaid.h(57) :
> error C2059: syntax error : '}'
> c:\program files\microsoft visual studio\vc98\include\new(16) : error
> C2061: syntax error : identifier 'class'
> ..............................................................................................................................
> ..............................................................................................................................
> c:\program files\microsoft visual studio\vc98\include\iosfwd(263) : fatal
> error C1003: error count exceeds 100; stopping compilation
> Error executing cl.exe.
> ex1.exe - 102 error(s), 5 warning(s)
>
> i am using windows xp and Visual C++ 6.0 . Please anyone help me . i am
> new in VC++ and GAlib :(
>
> Thanks in advance.
>
> Md. Shaiful islam
>
>
>
> ----------------------------------------------------------------------
>
> Get easy, one-click access to your favorites. Make Yahoo! your homepage.
> _______________________________________________
> galib mailing list
> galib at mit.edu
> http://mailman.mit.edu/mailman/listinfo/galib
--
GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D
Last night I dreamt of 09-f9-11-02-9d-74-e3-5b-d8-41-56-c5-63-56-88-c0
"A mathematician is a machine for converting coffee p at dirac.org
into theorems." -- Paul Erdös http://www.dirac.org
More information about the galib
mailing list