Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

Compilation fails under VS2013. #6

Closed
ongamex opened this issue Jul 4, 2015 · 6 comments
Closed

Compilation fails under VS2013. #6

ongamex opened this issue Jul 4, 2015 · 6 comments
Labels

Comments

@ongamex
Copy link

ongamex commented Jul 4, 2015

Compilation fails under VS2013, there are a lot of errors, primarily typecasts.

@vurtun
Copy link
Owner

vurtun commented Jul 4, 2015

Thanks for your feedback!.
Which demo did you try to compile the opengl, nanovg or win32 version or was the problem in the library itself? At the moment I do not have a windows system. So it will take till monday or tuesday to check and create project versions for visual studio. In addition did you compile with the C or the C++ compiler version?

@ongamex
Copy link
Author

ongamex commented Jul 4, 2015

Excuse me for my previous comment, It really doesn't help at all

All I did is basically drag'n'drop "gui.c" into my project file and then hit Ctr+F7. The output log probably won't help you but here it is http://pastebin.com/CW4wnF7L .

@vurtun
Copy link
Owner

vurtun commented Jul 4, 2015

Ah ok a lot of the typecast problems have it source in the difference between C and C++. This is a problem on my side since I use ANSI C and only compiled in Visual Studio with the C compiler which allows for casting from void pointer to any type without typecast. I will fix it as soon as possible and try to get everything running under C++.

@vurtun
Copy link
Owner

vurtun commented Jul 4, 2015

OK I uploaded a new version that should be compileable under C++ at least it is for clang and gcc. If it still gives errors than I need to look at it again under windows. If possible it would be nice if you could give me feedback so I can either close the issue or further look into it.

@ongamex
Copy link
Author

ongamex commented Jul 4, 2015

It compiles now! Thanks for the fast fix!

@vurtun
Copy link
Owner

vurtun commented Jul 4, 2015

OK great success. If you encounter any problems or if something is unclear feel free to just open another issue.

@vurtun vurtun closed this as completed Jul 4, 2015
@vurtun vurtun added the bug label Jul 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants