i have created my own header file...
using command line\console, i can compile using the GNU compile parameters. but do i need include my header file on parameters?
"It's quite difficult when you don't show real code."
i'm sorry, but what you mean? that code it's on header file.
i avoid 1 class and some functions that aren't used on cpp file, because have very code lines and these edit will give error, when i 'submit'.
"All I can say is that you must not forget to compile (and link) the file that contains the definition of Main."
the header file have it. because i create the Main() function and define it on cpp file.
the Code Blocks can do the right commands... maybe i forget some options, that i don't know them.
main() shouldn't be defined in a header file. It usually doesn't cause any problems if it's only included in one source file but would certainly lead to multiple definition errors if it was included in more than one source file.
"It's quite difficult when you don't show real code."
i'm sorry, but what you mean?
I mean that the code you have posted is obviously not the real code that produces the error that you posted.
- The error messages refer to line 335 and 339 in Untitled1.h but the header file that you have posted only contains 32 lines.
- Your typedef is named Boolean but in the source file you use boolean. I just assumed both of these were aliases for the bool type but if that is not the case then that could be the problem.
When people post simplified examples of their code the real problem is often hidden somewhere in the code that has been stripped away. It is nothing wrong to post simplified code, it is actually a very good thing to do, but then the code must still reproduces the same problem.
"When people post simplified examples of their code the real problem is often hidden somewhere in the code that has been stripped away. It is nothing wrong to post simplified code, it is actually a very good thing to do, but then the code must still reproduces the same problem."
that's why i only showed that code. it's too big for show it here.. and the problem was on showed code.
"- Your typedef is named Boolean but in the source file you use boolean. I just assumed both of these were aliases for the bool type but if that is not the case then that could be the problem."
that was my error without notice... thank you so much for all.. thank you
and i fixed 1 problem with new line that i need save it on file: i must do a double slash: "write(\"hello world\\n\")"
if we use '\n', the new line will happen on file and not on print... that's why we must use the double slash ;)