Thread: Making anything...period

  1. #16
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    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.

  2. #17
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Why exactly is that? Whats it for?

  3. #18
    x4000 Ruski's Avatar
    Join Date
    Jun 2002
    Location
    Outer Space!
    Posts
    542
    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?

  4. #19
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    Why exactly is that? Whats it for?
    It's basically for when you need to have special instances.

    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.

  5. #20
    x4000 Ruski's Avatar
    Join Date
    Jun 2002
    Location
    Outer Space!
    Posts
    542
    Just to remind you that I'm still waiting for the answer to my question...
    what does signature stand for?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Making great graphics
    By MadCow257 in forum Game Programming
    Replies: 1
    Last Post: 02-20-2006, 11:59 PM
  2. Adding trial period to software
    By BobS0327 in forum C Programming
    Replies: 17
    Last Post: 01-03-2006, 02:13 PM
  3. Making control...
    By Finchie_88 in forum C++ Programming
    Replies: 2
    Last Post: 09-07-2004, 01:42 PM
  4. Replies: 2
    Last Post: 01-13-2003, 01:28 PM
  5. About Unix Programming - Making a career desision
    By null in forum C Programming
    Replies: 0
    Last Post: 10-14-2001, 07:37 AM