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

Segmentation Fault #11

Closed trevorboultwood closed 1 year ago

trevorboultwood commented 1 year ago

I'm trying to get this library working with vscode following your guide but I get a segmentation fault!

I can successfully build the project with ctl+shift+b and this produces a lovely executable. If I try to run this nothing happens, if i open it within the console no error messages are displayed. The segmentation fault appears on initgraph. This is probably something to do with the library .a file...

Thank you!

ullaskunder3 commented 1 year ago

may I know what's the third parameter are you passing in initgraph() @trevorboultwood

trevorboultwood commented 1 year ago

Hi Ullaskunder3, I believe I solved my initial problem, whilst I'm not completely sure I suspect the underlying issue is dependent on the compiler being used. I think I was using a 32 bit compiler for the 64bit compiled library.

ullaskunder3 commented 1 year ago

Awesome