Thread: Visual C++ wont compile anymore

  1. #1
    Registered User Vespasian's Avatar
    Join Date
    Aug 2011
    Posts
    181

    Visual C++ wont compile anymore

    All my projects to date have been compiling on Visual C++.

    Then I did a small project to see how library linking is done. It worked but since the library linking project, none of my applications are working with the following error message:

    Warning 1 warning C4829: Possibly incorrect parameters to function main. Consider 'int main(Platform::Array<Platform::String^>^ argv)' C:\...\Documents\Visual Studio 2012\Projects\Project16\Project16\MyForm.cpp 7 1 Project16
    Error 2 error C2653: 'WindowsFormsC' : is not a class or namespace name C:\...\Documents\Visual Studio 2012\Projects\Project16\Project16\MyForm.cpp 11 1 Project16
    Error 3 error C2065: 'MyForm' : undeclared identifier C:\...\Documents\Visual Studio 2012\Projects\Project16\Project16\MyForm.cpp 11 1 Project16
    Error 4 error C2146: syntax error : missing ';' before identifier 'form' C:\...\Documents\Visual Studio 2012\Projects\Project16\Project16\MyForm.cpp 11 1 Project16
    Error 5 error C2065: 'form' : undeclared identifier C:\...\Documents\Visual Studio 2012\Projects\Project16\Project16\MyForm.cpp 11 1 Project16
    Error 6 error C2065: 'form' : undeclared identifier C:\...\Documents\Visual Studio 2012\Projects\Project16\Project16\MyForm.cpp 12 1 Project16
    It seems the obvious error is that its still trying to link to old links. I backtracked all my linkages and it comes out clean. All link fileds are blank.

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    it looks like you're trying to build your C++ application with CLR enabled.

  3. #3
    Registered User Vespasian's Avatar
    Join Date
    Aug 2011
    Posts
    181
    Quote Originally Posted by Elkvis View Post
    it looks like you're trying to build your C++ application with CLR enabled.
    It is a CLR project

  4. #4
    Registered User Vespasian's Avatar
    Join Date
    Aug 2011
    Posts
    181
    Quote Originally Posted by Vespasian View Post
    It is a CLR project
    There was problem with source file, fixed it.

  5. #5
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by Vespasian View Post
    It is a CLR project
    Then it isn't C++.
    It is better to post anything dealing with C++/CLI or Managed C++ in TechTalk.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can not open project anymore in Visual Studio
    By mvanrijnbach in forum Tech Board
    Replies: 3
    Last Post: 09-02-2012, 12:34 PM
  2. Why wont this compile:
    By ItchyBob in forum C++ Programming
    Replies: 5
    Last Post: 01-21-2011, 01:25 PM
  3. Why wont this compile?
    By Dieselfreak in forum C Programming
    Replies: 5
    Last Post: 12-13-2010, 11:37 AM
  4. GCC does not compile anymore
    By arno-nyme in forum Linux Programming
    Replies: 3
    Last Post: 01-28-2009, 03:29 PM
  5. Wont Compile In VS.NET
    By Troll_King in forum C++ Programming
    Replies: 11
    Last Post: 10-25-2001, 11:45 AM