×

Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    110

    Error when include file "midiclientutility.h"

    I include file "midiclientutility.h" into my project. But when built error occurs:

    error: 'EOpen' has a previous declaration as `TMidiState EOpen'[/Symbian/9.2/S60_3rd_FP1/EPOC32/include/midiclientutility.h] line 99
    error: 'EOpen' has a previous declaration as `TWlanSecMode EOpen'[/Symbian/9.2/S60_3rd_FP1/EPOC32/include/ApEngineConsts.h] line 202
    error: conflicting declaration 'EOpen'[/Symbian/9.2/S60_3rd_FP1/EPOC32/include/ApEngineConsts.h] line 202
    error: conflicting declaration 'EOpen'[/Symbian/9.2/S60_3rd_FP1/EPOC32/include/midiclientutility.h] line 99
    error: conflicts with previous declaration `TMidiState EOpen'[/Symbian/9.2/S60_3rd_FP1/EPOC32/include/midiclientutility.h] line 99
    error: conflicts with previous declaration `TWlanSecMode EOpen'[/Symbian/9.2/S60_3rd_FP1/EPOC32/include/ApEngineConsts.h] line 202
    error: declaration of `EOpen'[/Symbian/9.2/S60_3rd_FP1/EPOC32/include/ApEngineConsts.h] line 202
    error: declaration of `EOpen'[/Symbian/9.2/S60_3rd_FP1/EPOC32/include/midiclientutility.h] line 99
    Can anyone help me?

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,699

    Re: Error when include file "midiclientutility.h"

    Unfortunately it is something what happens from time to time. As you can see, midiclientutility.h and ApEngineConsts.h using identifiers with conflicting (same) names internally. Separating them in your code can be one way to solve the problem, so having two separate .cpp files, one using one header, the other using the other one.

Similar Threads

  1. [help]#error "The header file 'http.h' doesn't include <QObject>,for help me....
    By yangkaiye in forum [Archived] Qt General ( Qt技术)
    Replies: 0
    Last Post: 2010-12-23, 02:42
  2. Replies: 8
    Last Post: 2009-11-06, 21:42
  3. can DIALOG include "item" and "form" both?
    By RichieChyi in forum Symbian
    Replies: 2
    Last Post: 2008-05-08, 10:29
  4. free complete download file "smartclock" n "smartdisplay" for nokia 9210i
    By pitbulls in forum General Development Questions
    Replies: 0
    Last Post: 2004-01-24, 12:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×