Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User khanhcoc1210's Avatar
    Join Date
    Jan 2012
    Posts
    110
    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 wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,743
    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 C++
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved