Pelles C forum

Pelles C => General discussions => Topic started by: blens on July 24, 2015, 09:47:47 PM

Title: import vcproj
Post by: blens on July 24, 2015, 09:47:47 PM
I have a vcproj visual studio 2008 project.
Do it is possible to import it in pellesc?
Title: Re: import vcproj
Post by: Stefan Pendl on July 26, 2015, 08:09:39 PM
Pelles C ships with a wizard to import MSVC projects.

File => New => Project => Import MSVC Project
Title: Re: import vcproj
Post by: blens on July 26, 2015, 09:54:17 PM
I have imported it and I have setted "Enable Microsoft extensions" in Project options -> compiler.
But now i get more error in header.h file:

c:\aaa\aaa.h(17): warning #2099: Missing type specifier; assuming 'int'.
c:\aaa\aaa.h(17): error #2001: Syntax error: expected ';' but found 'CGammaRamp'.
c:\aaa\aaa.h(17): warning #2099: Missing type specifier; assuming 'int'.
c:\aaa\aaa.h(18): error #2001: Syntax error: expected ';' but found '{'.
c:\aaa\aaa.h(19): warning #2099: Missing type specifier; assuming 'int'.
c:\aaa\aaa.h(19): error #2001: Syntax error: expected ';' but found ':'.
c:\aaa\aaa.h(27): warning #2099: Missing type specifier; assuming 'int'.
...
Title: Re: import vcproj
Post by: jj2007 on July 27, 2015, 06:54:44 AM
There is no aaa.h with the original Pelles C package. It would be most helpful if you posted lines 17 & 18 of that file here.
Title: Re: import vcproj
Post by: TimoVJL on July 27, 2015, 10:49:21 AM
Maybe that is c++ header file ?
Title: Re: import vcproj
Post by: blens on July 27, 2015, 04:17:32 PM
#ifndef ALFA_H_
#define ALFA_H_


class CAlfa
{
Title: Re: import vcproj
Post by: Stefan Pendl on July 27, 2015, 11:27:36 PM
C++ is not ANSI C!

Pelles C only supports plain ANSI C, C++ is not supported, since it is a totally different language.