Does your stdafx.h have all of the includes it has per default? It
doesn't seem so to me. Visual Studio needs some strange headers to be
able to compile. Add a new project and copy those includes from there to
your stdafx.h
Am 11.11.2012 22:57, schrieb Arbol One:
>
> Yes, aaahh, MS-VS10 is very strange, from its main(), to its 'adding a
> new file'. I would not recommend it to anyone. Nevertheless, I have to
> get it to work for this application; I am sooooo sorry for that.
>
> I have an error message that says:
>
> 1>------ Build started: Project: vsSara, Configuration: Debug Win32 ------
>
> 1> stdafx.cpp
>
> 1>m:\gtkmm\include\gtkmm-2.4\gtkmm\papersize.h(291): warning C4099:
> 'Gtk::PaperSizeTraits' : type name first seen using 'class' now seen
> using 'struct'
>
> 1> m:\gtkmm\include\gtkmm-2.4\gtkmm\papersize.h(35) : see
> declaration of 'Gtk::PaperSizeTraits'
>
> 1> vsSara.cpp
>
> 1> exception.cpp
>
> 1>exception\exception.cpp(2): warning C4627: '#include
> "exception.hpp"': skipped when looking for precompiled header use
>
> 1> Add directive to 'StdAfx.h' or rebuild precompiled header
>
> 1>\exception\exception.cpp(470): fatal error C1010: unexpected end of
> file while looking for precompiled header. Did you forget to add
> '#include "StdAfx.h"' to your source?
>
>
>
>
>
> // stdafx.h
>
> #ifndefSARA_STDAFX_H
>
> #defineSARA_STDAFX_H
>
> #defineWIN32_LEAN_AND_MEAN
>
> #include<stdio.h>
>
> #include<gtkmm.h>
>
> #include"exception/exception.hpp"
>
> #endifSARA_STDAFX_H
>
>
>
>
>
> // vsSara.cpp
>
> #include"stdafx.h"
>
> #include"exception/exception.hpp"
>
>
>
> intmain(int argc, char *argv[]) {
>
> Gtk::Main kit(argc, argv);
>
> Gtk::Window jaime;
>
> Gtk::Main::run(jaime);
>
> return 0;
>
> }
>
>
>
> What am I doing wrong?
>
>
>
> This e-mail is for the sole use of the intended recipient and may
> contain confidential or privileged information. Unauthorized use of
> its contents is prohibited. If you have received this e-mail in error,
> please notify sender immediately via return e-mail and then delete the
> original e-mail.
>
>
>
> Let there come out of you a group of people inviting to all that is
> good, enjoining what is right, and to strive against what is wrong:
> They are the ones to attain respect and admiration, they are FSF,
> GTK+, *NIX, SQLite... etc.
>
> Eat Kosher
> <http://www.hanefesh.com/edu/kosher_Food_Symbols.htm#USAD:DocumentsDownloaded%20Installations>
>
>
>
>
>
> _______________________________________________
> gtkmm-list mailing list
> [email protected]
> https://mail.gnome.org/mailman/listinfo/gtkmm-list
_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list