Compiling problem

You've found a bug in PopMan? Tell me about it!

Moderator: Christian

Post Reply
dejalab
Posts: 3
Joined: 15 Dec 2006, 23:25

Compiling problem

Post by dejalab » 15 Dec 2006, 23:29

Hi, i´m trying to compile the code of the 1.3 beta version, and i receive the next message from the V6.
Can you tell me what can i do to solve it?
Best regards
JR*



--------------------Configuration: PopMan - Win32 Release--------------------
Compiling...
StdAfx.cpp
C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\shellapi.h(508) : error C2501: 'NOTIFYICONDATAA' : missing storage-class or type specifiers
C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\shellapi.h(508) : error C2501: 'PNOTIFYICONDATAA' : missing storage-class or type specifiers
C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\shellapi.h(522) : error C2146: syntax error : missing ';' before identifier 'NOTIFYICONDATA'
C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\shellapi.h(522) : error C2378: 'NOTIFYICONDATAA' : redefinition; symbol cannot be overloaded with a typedef
C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\shellapi.h(508) : see declaration of 'NOTIFYICONDATAA'
C:\Archivos de programa\Microsoft Visual Studio\VC98\INCLUDE\shellapi.h(522) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Release\StdAfx.sbr': No such file or directory
Error executing bscmake.exe.

PopMan.exe - 6 error(s), 0 warning(s)

User avatar
Christian
Site Admin
Posts: 315
Joined: 11 Jan 2004, 13:04
Location: Magdeburg, Germany
Contact:

Post by Christian » 16 Dec 2006, 14:35

I don't know what could be the problem. Did you make any modifications to the code or the project settings before compiling?
Are you able to compile other MFC/C++ projects with your VC6 installation, e.g. a sample project created with the wizard? Maybe there is something wrong with the included system header files...
Christian Hübner

dejalab
Posts: 3
Joined: 15 Dec 2006, 23:25

Post by dejalab » 18 Dec 2006, 01:29

No i just unzip the files, and try to compile, and that error shows...
I do other project compilations and works fine, i don´t know if maybe is something wrong with shellapi.h the other project maybe don´t use this file.
I found this explanation in MSDN.
But i don´t know what to do.

------------------------------------------------------------------

Visual C++ Concepts: Building a C/C++ Program
Compiler Error C2501

'identifier' : missing storage-class or type specifiers

The identifier is declared without specifying its type.

Possible causes

* Spelling or capitalization error.
* Missing type specifier in the declaration of the identifier.

Example

// C2501.cpp
// Header file for the CUndeclared has been omitted:
class CMyClass {
private:
CUndeclared m_myClass; // C2501: Class unknown
} ;

------------------------------------------------------------------

dejalab
Posts: 3
Joined: 15 Dec 2006, 23:25

Post by dejalab » 20 Dec 2006, 21:02

Unistall an reinstall de Visual Studio Solve the problem,

Post Reply