Firebird News

Thursday, May 20, 2004

compiling an BorlanC++ (DOZ) program (named drunken horsie) on linux
Here we go :

g++ calutzu.cpp
In file included from /usr/include/c++/3.3/backward/iostream.h:31,
from calutzu.cpp:1:
/usr/include/c++/3.3/backward/backward_warning.h:32:2: warning: #warning This fi le includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples in clude substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning us e -Wno-deprecated.
calutzu.cpp:2:18: conio.h: No such file or directory
calutzu.cpp:3:21: graphics.h: No such file or directory
calutzu.cpp:4:16: dos.h: No such file or directory
calutzu.cpp: In function `void draw_solutie()':
calutzu.cpp:39: error: `delay' undeclared (first use this function)
calutzu.cpp:39: error: (Each undeclared identifier is reported only once for
each function it appears in.)
calutzu.cpp: In function `void cal(int, int)':
calutzu.cpp:47: error: `getch' undeclared (first use this function)
calutzu.cpp: In function `void mod_grafic()':
calutzu.cpp:77: error: `detectgraph' undeclared (first use this function)
calutzu.cpp:79: error: `initgraph' undeclared (first use this function)
calutzu.cpp: In function `void draw(int, int)':
calutzu.cpp:86: error: `cleardevice' undeclared (first use this function)
calutzu.cpp:87: error: `CYAN' undeclared (first use this function)
calutzu.cpp: In function `void draw_horsy(int, int)':
calutzu.cpp:95: error: `SOLID_FILL' undeclared (first use this function)
calutzu.cpp:95: error: `RED' undeclared (first use this function)
calutzu.cpp:95: error: `setfillstyle' undeclared (first use this function)
calutzu.cpp:96: error: `pieslice' undeclared (first use this function)
calutzu.cpp: In function `void draw_grid(int, int, int)':
calutzu.cpp:106: error: `getmaxx' undeclared (first use this function)
calutzu.cpp:107: error: `getmaxy' undeclared (first use this function)
calutzu.cpp:110: error: `outtextxy' undeclared (first use this function)
calutzu.cpp:111: error: `getcolor' undeclared (first use this function)
calutzu.cpp:112: error: `setcolor' undeclared (first use this function)
calutzu.cpp:118: error: `line' undeclared (first use this function)
calutzu.cpp: At global scope:
calutzu.cpp:130: error: `main' must return `int'
calutzu.cpp: In function `int main(...)':
calutzu.cpp:144: error: `closegraph' undeclared (first use this function)


Update
Now the program is compiling on linux but doesn't show anything yet :)

1 comment:

Alex Stanciu said...

Will you stop it already with that horse ? It jumps around, that all..