You're right; I'm sorry. However, it's good practice to always declare it, esepcially when making an example to a newbie.I never use; using namespace std... I read I didn't "need" to.
You're right; I'm sorry. However, it's good practice to always declare it, esepcially when making an example to a newbie.I never use; using namespace std... I read I didn't "need" to.
Why exactly is that? Whats it for?
I got these errors building all that...
Building Makefile: "F:\Dev-C++\Projects\Temp\Makefile.win"
Executing make...
make.exe all -f "F:\Dev-C++\Projects\Temp\Makefile.win"
g++.exe -c main.cpp -o main.o -I"F:\DEV-C++\include" -I"F:\DEV-C++\include" -s
In file included from main.cpp:8:
F:/DEV-C++/include/graphics.h:4:19: graph.h: No such file or directory
F:/DEV-C++/include/graphics.h:9:7: warning: no newline at end of file
main.cpp: In function `int main()':
main.cpp:14: `lineTo' undeclared (first use this function)
main.cpp:14: (Each undeclared identifier is reported only once for each
function it appears in.)
main.cpp:16: `moveTo' undeclared (first use this function)
main.cpp:24: `outText' undeclared (first use this function)
g++.exe main.o -o "project1.exe" -L"F:\DEV-C++\lib" -I"F:\DEV-C++\include" -I"F:\DEV-C++\include" -s
main.o(.text+0x41):main.cpp: undefined reference to `install_allegro'
main.o(.text+0x5f):main.cpp: undefined reference to `set_gfx_mode'
main.o(.text+0x67):main.cpp: undefined reference to `install_keyboard'
main.o(.text+0x7a):main.cpp: undefined reference to `_imp__font'
main.o(.text+0x81):main.cpp: undefined reference to `_imp__screen'
main.o(.text+0x88):main.cpp: undefined reference to `textout'
main.o(.text+0x9e):main.cpp: undefined reference to `_imp__font'
main.o(.text+0xa5):main.cpp: undefined reference to `_imp__screen'
main.o(.text+0xac):main.cpp: undefined reference to `textout'
main.o(.text+0xb4):main.cpp: undefined reference to `_imp__key'
main.o(.text+0xc2):main.cpp: undefined reference to `poll_keyboard'
main.o(.text+0xc9):main.cpp: undefined reference to `allegro_exit'
main.o(.text+0xef):main.cpp: undefined reference to `_WinMain'
Execution terminated
Please help.
what does signature stand for?
It's basically for when you need to have special instances.Why exactly is that? Whats it for?
Here is a thread at allegro.cc that has some more information on using namespace. This will probably be better than having me try to explain it.
Just to remind you that I'm still waiting for the answer to my question...
what does signature stand for?