Visual C++

Moderators: Lundin
Number of threads: 373
Number of posts: 687

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
linking errors Posted by madafandy on 28 Feb 2009 at 10:05 AM
i am working on vs2005 vc++ the code is
#include "stdafx.h"
#include "cstdio"
#include "cstdlib"
#include "image.h"
#include "misc.h"
#include "pnmfile.h"
#include "segment-image.h"

using namespace std;


int main(int argc, char **argv)
{
the rest of code
}
the error message
Error 7 fatal error LNK1287: invalid managed entry point "int __clrcall main(int,char * *)" (?main@@$$HYMHHPAPAD@Z) segc++
the projcet on image segmentation.
thanks
Report
Re: linking errors Posted by AsmGuru62 on 1 Mar 2009 at 5:18 AM
You created a project for managed C++, you need a simple Console Application project.

File -> New -> Project ... and there pick up a Win32 console project.
Report
Re: linking errors Posted by madafandy on 1 Mar 2009 at 12:46 PM
i picked up windows forms application didnot it
good enough .is win32 console application
working on windows? i am sorry it is my first
project.
i need your help please.
thanks alot,
Report
Re: linking errors Posted by AsmGuru62 on 1 Mar 2009 at 11:03 PM
"Windows Forms" application is most likely C# code or managed C++ code if you selected CLR project type. "Win32 Console" is exactly what you need if you have "int main (int argc, char* argv[])".
Report
Re: linking errors Posted by madafandy on 3 Mar 2009 at 6:18 AM
thanks alot i will try it now ;
but win32 console run on windows or dos.
please donot angry my programming skills
still so little
to be honest
i think it run on dos




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.