Closed SpiffGreen closed 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...
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 to
circle'
C:\Users\Spiff\AppData\Local\Temp\ccsxPxOX.o:example.cpp:(.text+0x8a): undefined reference to `closegraph'
collect2.exe: error: ld returned 1 exit status
@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
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
I'm getting this error
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 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 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
please refer my workspace .vscode
ullaskunder3 graphics template
D:.
ββββ.vscode
ββββHome
ββββbuild
ββββsrc
Now I'm getting this error!
Now I'm getting this error!
please refer my workspace .vscode
ullaskunder3 graphics template
D:.
ββββ.vscode
ββββHome
ββββbuild
ββββsrc
Now I'm getting this error!
please refer my workspace
.vscode
ullaskunder3 graphics templateD:. ββββ.vscode ββββHome ββββbuild ββββsrc
I'm trying to compile Hut.cpp the file of yours
@Suryajung8 @SpiffGreen
c_cpp_properties.json
c_cpp_properties, task.json
task.json So vs code know where the header files are located.Thankyou Now It's fixed
Thanks a lot. It worked for me.
graphics.h file doesn't contain complete function definitions for some functions