Panel użytkownika
Nazwa użytkownika:
Hasło:
Nie masz jeszcze konta?

[OpenGl]Problme z skompilowaniem przykładu z kursu NEHE(27)

Ostatnio zmodyfikowano 2012-02-09 14:34
Autor Wiadomość
Trix
Temat założony przez niniejszego użytkownika
[OpenGl]Problme z skompilowaniem przykładu z kursu NEHE(27)
» 2012-02-09 14:34:21
Błąd w Output VS2010:
------ Build started: Project: gl1, Configuration: Debug Win32 ------
  main2.cpp
c:\program files\microsoft visual studio 10.0\vc\include\gl\glaux.h(17): warning C4068: unknown pragma
c:\program files\microsoft visual studio 10.0\vc\include\gl\glaux.h(374): warning C4068: unknown pragma
c:\programy w c++\gl1\gl1\3dobject.h(37): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(234) : see declaration of 'fopen'
c:\programy w c++\gl1\gl1\3dobject.h(40): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : see declaration of 'fscanf'
c:\programy w c++\gl1\gl1\3dobject.h(42): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : see declaration of 'fscanf'
c:\programy w c++\gl1\gl1\3dobject.h(43): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : see declaration of 'fscanf'
c:\programy w c++\gl1\gl1\3dobject.h(44): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : see declaration of 'fscanf'
c:\programy w c++\gl1\gl1\3dobject.h(47): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : see declaration of 'fscanf'
c:\programy w c++\gl1\gl1\3dobject.h(49): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : see declaration of 'fscanf'
c:\programy w c++\gl1\gl1\3dobject.h(50): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : see declaration of 'fscanf'
c:\programy w c++\gl1\gl1\3dobject.h(51): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : see declaration of 'fscanf'
c:\programy w c++\gl1\gl1\3dobject.h(53): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : see declaration of 'fscanf'
c:\programy w c++\gl1\gl1\3dobject.h(54): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : see declaration of 'fscanf'
c:\programy w c++\gl1\gl1\3dobject.h(55): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : see declaration of 'fscanf'
c:\programy w c++\gl1\gl1\3dobject.h(56): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : see declaration of 'fscanf'
c:\programy w c++\gl1\gl1\3dobject.h(57): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : see declaration of 'fscanf'
c:\programy w c++\gl1\gl1\3dobject.h(58): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : see declaration of 'fscanf'
c:\programy w c++\gl1\gl1\3dobject.h(59): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : see declaration of 'fscanf'
c:\programy w c++\gl1\gl1\3dobject.h(60): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : see declaration of 'fscanf'
c:\programy w c++\gl1\gl1\3dobject.h(61): warning C4996: 'fscanf': This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(253) : see declaration of 'fscanf'
c:\programy w c++\gl1\gl1\3dobject.h(88): error C2668: 'abs' : ambiguous call to overloaded function
          c:\program files\microsoft visual studio 10.0\vc\include\stdlib.h(471): could be '__int64 abs(__int64)'
          c:\program files\microsoft visual studio 10.0\vc\include\stdlib.h(467): or       'long abs(long)'
          c:\program files\microsoft visual studio 10.0\vc\include\stdlib.h(362): or       'int abs(int)'
          while trying to match the argument list '(unsigned int)'
c:\programy w c++\gl1\gl1\3dobject.h(89): error C2668: 'abs' : ambiguous call to overloaded function
          c:\program files\microsoft visual studio 10.0\vc\include\stdlib.h(471): could be '__int64 abs(__int64)'
          c:\program files\microsoft visual studio 10.0\vc\include\stdlib.h(467): or       'long abs(long)'
          c:\program files\microsoft visual studio 10.0\vc\include\stdlib.h(362): or       'int abs(int)'
          while trying to match the argument list '(unsigned int)'
c:\programy w c++\gl1\gl1\3dobject.h(90): error C2668: 'abs' : ambiguous call to overloaded function
          c:\program files\microsoft visual studio 10.0\vc\include\stdlib.h(471): could be '__int64 abs(__int64)'
          c:\program files\microsoft visual studio 10.0\vc\include\stdlib.h(467): or       'long abs(long)'
          c:\program files\microsoft visual studio 10.0\vc\include\stdlib.h(362): or       'int abs(int)'
          while trying to match the argument list '(unsigned int)'
c:\programy w c++\gl1\gl1\3dobject.h(91): error C2668: 'abs' : ambiguous call to overloaded function
          c:\program files\microsoft visual studio 10.0\vc\include\stdlib.h(471): could be '__int64 abs(__int64)'
          c:\program files\microsoft visual studio 10.0\vc\include\stdlib.h(467): or       'long abs(long)'
          c:\program files\microsoft visual studio 10.0\vc\include\stdlib.h(362): or       'int abs(int)'
          while trying to match the argument list '(unsigned int)'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Link do kursu (27): http://aklimx.sppieniezno.pl/nehepl/display.php?id=27
Link do demka i plików źródłowych: http://nehe.gamedev.net/data/lessons/vc/lesson27.zip

Przykłady wstecz poprawnie się kompilują, zaraz spr. dalsze części jak z nimi jest...

EDIT: Lekcję 30 też nie mogę skompilować:
Błąd w pliku main:
------ Build started: Project: gl1, Configuration: Debug Win32 ------
  Tvector.cpp
  Tray.cpp
  Tmatrix.cpp
  main2.cpp
c:\programy w c++\gl1\gl1\main2.cpp(944): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(944): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(944): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(945): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(945): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(945): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(951): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(951): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(951): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(953): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(953): error C2228: left of '._Alpha' must have class/struct/union
c:\programy w c++\gl1\gl1\main2.cpp(955): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(955): error C2228: left of '._Alpha' must have class/struct/union
c:\programy w c++\gl1\gl1\main2.cpp(956): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(956): error C2228: left of '._Position' must have class/struct/union
c:\programy w c++\gl1\gl1\main2.cpp(957): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(957): error C2228: left of '._Scale' must have class/struct/union
c:\programy w c++\gl1\gl1\main2.cpp(976): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(976): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(976): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(977): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(977): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(977): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(985): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(985): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(985): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(987): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(987): error C2228: left of '._Alpha' must have class/struct/union
c:\programy w c++\gl1\gl1\main2.cpp(989): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(989): error C2228: left of '._Alpha' must have class/struct/union
c:\programy w c++\gl1\gl1\main2.cpp(990): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(990): error C2228: left of '._Position' must have class/struct/union
c:\programy w c++\gl1\gl1\main2.cpp(991): error C2065: 'j' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(991): error C2228: left of '._Scale' must have class/struct/union
c:\programy w c++\gl1\gl1\main2.cpp(1059): error C2065: 'i' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(1059): error C2065: 'i' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(1059): error C2065: 'i' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(1061): error C2065: 'i' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(1061): error C2228: left of '._Alpha' must have class/struct/union
c:\programy w c++\gl1\gl1\main2.cpp(1062): error C2065: 'i' : undeclared identifier
c:\programy w c++\gl1\gl1\main2.cpp(1062): error C2228: left of '._Scale' must have class/struct/union
  Image.cpp
c:\programy w c++\gl1\gl1\image.cpp(59): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
          c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(234) : see declaration of 'fopen'
  Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
P-50408
« 1 »
  Strona 1 z 1