Is there a function to check if a function or variable is declared?
Is there a function to check if a function or variable is declared?
not really... what's your situation?
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT
Originally Posted by major_small
i have a strange feeling it's a circular include
i seem to have GCC 3.3.4
But how do i start it?
I dont have a menu for it or anything.
Originally Posted by misplaced
what is a circular include, ive never heard of it before?
oversimplified:
file1:file2:Code:#include "file1"Code:#include "file2"
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT
> Is there a function to check if a function or variable is declared?
Yeah, it's called a compiler.
If it isn't declared, it prints a message.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
you took the easy answerOriginally Posted by Salem
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT
What you gave is two examples of self-inclusion. I assume what you meant was;Originally Posted by major_small
file1:file2:Code:#include "file2"Code:#include "file1"
I'll take a wild guess at his situation.
To make sure its not included more than once when compiling, add this at beginning of .h file: #ifndef FILENAMEHERE_H_, and #define FILENAMEHERE_H_, and then #endif at the end of the .h file.
Warning: Have doubt in anything I post.
GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101
yeah, that's what I meant... sorry about any confusion I causedOriginally Posted by grumpy
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT
It might be a double-include.
file1:file2:Code:#include "file3"file4:Code:#include "file3"Code:#include "file1" #include "file2"
To answer your question. C++ requires a build environment of some sort in order to build an application. This is included in part of the Critique of C++ (http://ortdotlove.net/docs/ACritiqueOfC++.pdf). This is why we have things like autotools who's job is to determine if functions exist and if they confrom to a particular implementation. I'd suggest starting by learning Scons. It is an easy to use and learn build environment. And then if you care you can learn autotools which is quite painful and most likely going to give you braindamage. Both work under *NIX and Win32 (win32 requires something like cygwin).