linking errors - Programmers Heaven

Howdy, Stranger!

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

Categories

linking errors

madafandymadafandy Posts: 3Member
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

Comments

  • AsmGuru62AsmGuru62 Posts: 6,519Member
    [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]
  • madafandymadafandy Posts: 3Member
    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,
  • AsmGuru62AsmGuru62 Posts: 6,519Member
    [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]
  • madafandymadafandy Posts: 3Member
    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.