ullaskunder3 / Solution-to-graphics.h

My vs code setup for graphics.h ( I know its old, have to learn because of university they use turbo 😱. Vs code is way better 😍)
https://ullaskunder3.github.io/Solution-to-graphics.h/
48 stars 42 forks source link

Incomplete file #3

Closed SpiffGreen closed 3 years ago

SpiffGreen commented 3 years ago

graphics.h file doesn't contain complete function definitions for some functions

ullaskunder3 commented 3 years ago

graphics.h file doesn't contain complete function definitions for some functions

Can you please provide more information then that Did you fall into an error ? if yes then please specifies...

SpiffGreen commented 3 years ago

Sorry, I've not being able to reply you. I had a compile error as it showed the error below. C:\Users\Spiff\AppData\Local\Temp\ccsxPxOX.o:example.cpp:(.text+0x5d): undefined reference to initgraph' C:\Users\Spiff\AppData\Local\Temp\ccsxPxOX.o:example.cpp:(.text+0x79): undefined reference tocircle' C:\Users\Spiff\AppData\Local\Temp\ccsxPxOX.o:example.cpp:(.text+0x8a): undefined reference to `closegraph' collect2.exe: error: ld returned 1 exit status

ullaskunder3 commented 3 years ago

@SpiffGreen It's ok no problem, can you reproduce the code If yes, can you please share a sample short code that I can just copy and try to reproduce? Thanks

Suryajung8 commented 3 years ago

In file included from example.cpp:1: C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/graphics.h:13:10: fatal error: _defs.h: No such file or directory

include <_defs.h>

I'm getting this error

ullaskunder3 commented 3 years ago

In file included from example.cpp:1: C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/graphics.h:13:10: fatal error: _defs.h: No such file or directory

include <_defs.h>

I'm getting this error

@Suryajung8 Please use MINGW not MingW64 and please follow the documentation for setup graphics.h in vsCode. Know the difference between MINGW, Mingw-w64 && TDM compiler learn more.

If you want to use the older graphics.h then go for MingW If your working with something like SFML or SDL( Go for TDM GCC ) & OPENCV ( Go for MinGW-w64 )

SpiffGreen commented 3 years ago

@SpiffGreen It's ok no problem, can you reproduce the code If yes, can you please share a sample short code that I can just copy and try to reproduce? Thanks

I used the code in example.cpp and also the one in the readme. Both gave same error. I am currently using MinGW target is mingw32

SpiffGreen commented 3 years ago

@SpiffGreen It's ok no problem, can you reproduce the code If yes, can you please share a sample short code that I can just copy and try to reproduce? Thanks

I used the code in example.cpp and also the one in the readme. Both gave same error. I am currently using MinGW target is mingw32

ullaskunder3 commented 3 years ago

please refer my workspace .vscode ullaskunder3 graphics template

D:.
β”œβ”€β”€β”€.vscode
└───Home
    β”œβ”€β”€β”€build
    └───src
Suryajung8 commented 3 years ago

image Now I'm getting this error!

ullaskunder3 commented 3 years ago

image Now I'm getting this error!

please refer my workspace .vscode ullaskunder3 graphics template

D:.
β”œβ”€β”€β”€.vscode
└───Home
    β”œβ”€β”€β”€build
    └───src
Suryajung8 commented 3 years ago

image Now I'm getting this error!

please refer my workspace .vscode ullaskunder3 graphics template

D:.
β”œβ”€β”€β”€.vscode
└───Home
    β”œβ”€β”€β”€build
    └───src

I'm trying to compile Hut.cpp the file of yours

ullaskunder3 commented 3 years ago

@Suryajung8 @SpiffGreen

Suryajung8 commented 3 years ago

Thankyou Now It's fixed

SpiffGreen commented 3 years ago

Thanks a lot. It worked for me.