Coder Social home page Coder Social logo

Comments (14)

Suryajung8 avatar Suryajung8 commented on July 1, 2024 1

Thankyou Now It's fixed

from solution-to-graphics.h.

SpiffGreen avatar SpiffGreen commented on July 1, 2024 1

Thanks a lot. It worked for me.

from solution-to-graphics.h.

ullaskunder3 avatar ullaskunder3 commented on July 1, 2024

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...

from solution-to-graphics.h.

SpiffGreen avatar SpiffGreen commented on July 1, 2024

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

from solution-to-graphics.h.

ullaskunder3 avatar ullaskunder3 commented on July 1, 2024

@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

from solution-to-graphics.h.

Suryajung8 avatar Suryajung8 commented on July 1, 2024

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

from solution-to-graphics.h.

ullaskunder3 avatar ullaskunder3 commented on July 1, 2024

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 )

from solution-to-graphics.h.

SpiffGreen avatar SpiffGreen commented on July 1, 2024

@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

from solution-to-graphics.h.

SpiffGreen avatar SpiffGreen commented on July 1, 2024

@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

from solution-to-graphics.h.

ullaskunder3 avatar ullaskunder3 commented on July 1, 2024

please refer my workspace .vscode ullaskunder3 graphics template

D:.
├───.vscode
└───Home
    ├───build
    └───src

from solution-to-graphics.h.

Suryajung8 avatar Suryajung8 commented on July 1, 2024

image
Now I'm getting this error!

from solution-to-graphics.h.

ullaskunder3 avatar ullaskunder3 commented on July 1, 2024

image
Now I'm getting this error!

please refer my workspace .vscode ullaskunder3 graphics template

D:.
├───.vscode
└───Home
    ├───build
    └───src

from solution-to-graphics.h.

Suryajung8 avatar Suryajung8 commented on July 1, 2024

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

from solution-to-graphics.h.

ullaskunder3 avatar ullaskunder3 commented on July 1, 2024

@Suryajung8 @SpiffGreen

  • We need to configure OR specify where the graphics.h file and the include file located thats why we need c_cpp_properties.json c_cpp_properties, task.json task.json So vs code know where the header files are located.
  • ! important=> We Need MinGW to run the graphics.h file

from solution-to-graphics.h.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.