xieuweolauqin
Member
|
VC++ wont build totural scripts
hello everyone
i have a problem
its like the title says
when i build an example script VC++ says it made it succesfully, yet the exe isnt there nor the directory it should be in
if i run the debug then VC cannot find the exe either, yet when I use build again it updates the non existing file and there is still nothing
Any help would be acpriciated
(This post was last modified: 05-13-2010 12:21 PM by xieuweolauqin.)
|
|
05-13-2010 12:20 PM |
|
Esenthel
Administrator
|
RE: VC++ wont build totural scripts
Hello,
Could you tell us which Visual Studio are you using?
Are you using provided "Tutorials" project?
Does the VC output window shows any messages?
|
|
05-13-2010 12:22 PM |
|
xieuweolauqin
Member
|
RE: VC++ wont build totural scripts
im using microsoft visual C++ 2010
actually, i also asked this question on the
Microsoft Developer Network Forums
someone told me to make a Win32 Console Application
I did this, but now i get this
------ Build started: Project: tests, Configuration: Debug Win32 ------
test.cpp
c:\documents and settings\roland behr\mijn documenten\visual studio 2010\projects\testos\testos\test.cpp(2): fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
how do i fix this?
its tutorial 01 drawing,
(This post was last modified: 05-13-2010 01:59 PM by xieuweolauqin.)
|
|
05-13-2010 01:57 PM |
|
Esenthel
Administrator
|
RE: VC++ wont build totural scripts
you should import the existing project (tutorials)
or create new from scratch using documentation (not console application but win32 application)
if you're using vs2010 then its possible that for existing project (tutorials) you need to adjust "Linker\General\Output File" to match the one in "General" options (but I don't remember correctly)
|
|
05-13-2010 02:03 PM |
|
xieuweolauqin
Member
|
RE: VC++ wont build totural scripts
I tryed on another computer with a normal win32 application.
but now i get this
1>------ Build started: Project: test2, Configuration: Debug Win32 ------
1> test2.cpp
1>c:\...\visual studio 2010\projects\test2\test2\test2.cpp(1): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source?
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
obviously stafx.h is in the toturial script.
So why is it giving this error?
|
|
05-14-2010 01:51 PM |
|
Barthap
Member
|
RE: VC++ wont build totural scripts
you should insert in your code
Code:
#include "stdafx.h"
in all your .cpp files
(This post was last modified: 05-14-2010 06:17 PM by Barthap.)
|
|
05-14-2010 06:16 PM |
|