linking errors

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 * *)" ([email protected]@[email protected]) segc++
the projcet on image segmentation.
thanks

Comments

  • [color=Blue]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.[/color]
  • 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,
  • [color=Blue]"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[])".[/color]
  • 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

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories