nikel1992 Posted May 25, 2012 Report Posted May 25, 2012 Incerc sa fac o modelare 3d pentru un proiect de grafica la facultate si intampin urmatoarea eroare.1>------ Build started: Project: Proiect grafica, Configuration: Debug Win32 ------1>Build started 5/25/2012 8:34:03 PM.1>InitializeBuildStatus:1> Touching "Debug\Proiect grafica.unsuccessfulbuild".1>ClCompile:1> All outputs are up-to-date.1> Modelare 3d.cpp1>c:\users\cishu\documents\visual studio 2010\projects\proiect grafica\proiect grafica\modelare 3d.cpp(2): warning C4627: '#include <stdlib.h>': skipped when looking for precompiled header use1> Add directive to 'StdAfx.h' or rebuild precompiled header1>c:\users\cishu\documents\visual studio 2010\projects\proiect grafica\proiect grafica\modelare 3d.cpp(3): warning C4627: '#include <GL/gl.h>': skipped when looking for precompiled header use1> Add directive to 'StdAfx.h' or rebuild precompiled header1>c:\users\cishu\documents\visual studio 2010\projects\proiect grafica\proiect grafica\modelare 3d.cpp(4): warning C4627: '#include <GL/glut.h>': skipped when looking for precompiled header use1> Add directive to 'StdAfx.h' or rebuild precompiled header1>c:\users\cishu\documents\visual studio 2010\projects\proiect grafica\proiect grafica\modelare 3d.cpp(95): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source?1>1>Build FAILED.1>1>Time Elapsed 00:00:00.10========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========Folosesc un Microsoft Visual Studio 2010 de pe filelist.Am incercat sa introduc librariile cum scrie pe net si cum mai mi`a spus cineva de pe acest forum , dar nu am reusit. Va multumesc mult. Quote
cifratorul Posted May 25, 2012 Report Posted May 25, 2012 e f simplu. daca folosesti "precompiled header" atunci trebuie sa incluzi in fiecare cpp stdafx.h asa cum spune eroarea:. Did you forget to add '#include "StdAfx.h"' to your source?daca nu folosesti asa ceva atunci te duci in setarile proiectului si scoti precompiled header Quote
R3AL Posted May 25, 2012 Report Posted May 25, 2012 Schimba Project/Solution proprieties -> Configuration proprieties -> C/C++ -> Precompiled headers -> Precompiled header din "Yes" in "Not using precompiled headers" Quote