c++ - Error when converting .obj to openGL -


When I had to open the .obj file, there are some errors in I. I'm not sure how to fix the error. To & gt; Changed, the error still persists

  1> ------ Build started: Project: Loaded obz test, Configuration: Release Win32 ------ 1 & gt; LoadObj Trial CPP 1 & gt; Load Objal Trial CPP (78): Warning C4018: '& lt;' : Signed / unsigned mismatch 1 & gt; Load Objal Trial CPP (90): Error C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable exclusion, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1 & gt; D: \ Visual Studio \ VC \ included \ stdio.h (311): 'sscanf' 1 & gt; Load Objal Trial CPP (109) Warning: 'C4018 Warning': '  LoadObj Trial.cpp (90): Error C4996: 'sscanf': This function or variable may be unsafe  

. Consider using sscanf_s instead. To disable exclusion, use _CRT_SECURE_NO_WARNINGS. See online help for details.

1> Include in D: \ Visual Studio \ VC \ stdio.h (311): View announcement of 'sscanf'

This is not really an error, and its Nothing has to do with OpenGL. It is an MSWC compiler that treats as a compiler error. Your project is probably configured to handle 3/4 warnings in the form of errors.

To resolve "error", you can suggest how they suggest (which will make your code non-portable), or #define _CRT_SECURE_NO_WARNINGS or add that definition to your pre-processor definitions in the project settings.

Other Warnings However, it is impossible to diagnose without seeing your code. And it is quite safe to believe that just to change the direction of comparison useful is not going to do anything, which will probably break things and solve the problem of comparing signed and unsigned values I will not do anything for


I mentioned a project-wide setting about creating pre-processor definition, see the following screenshot (Visual Studio 2013 Pro):

 Project Settings

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -