Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Icon designer » " 'AK_DUPLICATE' was not declared..."
" 'AK_DUPLICATE' was not declared..." [message #20359] Fri, 13 March 2009 23:05 Go to next message
emr84 is currently offline  emr84
Messages: 26
Registered: April 2008
Location: Argentina
Promising Member
MinGW + WinXP SP2 - Optimal mode. In svn.

Quote:

----- IconDes ( GUI GCC BLITZ WIN32 ) (21 / 34)
BLITZ: AlphaCtrl.cpp RGBACtrl.cpp Paint.cpp Event.cpp IconDes.cpp List.cpp Image.cpp Bar.cpp EditPos.cpp ImlFile.cpp
In file included from C:/uppsvn/out/IconDes/MINGW.Blitz.Gui\$blitz.cpp:29:
C:\uppsvn\uppsrc\IconDes\List.cpp: In member function 'void Upp::IconDes::ListMenu(Upp::Bar&)':
C:\uppsvn\uppsrc\IconDes\List.cpp:264: error: 'AK_DUPLICATE' was not declared in this scope
ImageOp.cpp
Fast.cpp
IconDes: 12 file(s) built in (0:23.48), 1957 msecs / file, duration = 23719 msecs

There were errors. (16:14.12)


Re: " 'AK_DUPLICATE' was not declared..." [message #20361 is a reply to message #20359] Sat, 14 March 2009 08:06 Go to previous messageGo to next message
chickenk is currently offline  chickenk
Messages: 169
Registered: May 2007
Location: Grenoble, France
Experienced Member
Hello,

I got through this problem already. I thought I already talked about it, but could not find the corresponding message...

in fact, the _DUPLICATE preprocessor macro is redefined by one of mingw headers, can't remember which one, but anyway. I can recall it is defined to 0, so that AK_DUPLICATE becomes AK0 or something like that, and does not reference the key anymore.

I could work around this by replacing AK_DUPLICATE by COMBINE(AK_,DUPLICATE). It's probably not the best solution but it exposes the problem.

regards,
Lionel
Re: " 'AK_DUPLICATE' was not declared..." [message #21495 is a reply to message #20359] Sat, 23 May 2009 00:33 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Thank you chickenk

It happened the same to me and the solution also works for me.

Best regards
Koldo


Best regards
IƱaki
Re: " 'AK_DUPLICATE' was not declared..." [message #21516 is a reply to message #20359] Sun, 24 May 2009 05:28 Go to previous messageGo to next message
emr84 is currently offline  emr84
Messages: 26
Registered: April 2008
Location: Argentina
Promising Member
Sorry for not reply Embarassed . It works for me too.
But, is the "official" solution?
Re: " 'AK_DUPLICATE' was not declared..." [message #21517 is a reply to message #21516] Sun, 24 May 2009 07:41 Go to previous messageGo to next message
chickenk is currently offline  chickenk
Messages: 169
Registered: May 2007
Location: Grenoble, France
Experienced Member
emr84 wrote on Sun, 24 May 2009 05:28

Sorry for not reply Embarassed . It works for me too.
But, is the "official" solution?

I don't think so. If it were it would have been implemented by Mirek.

A slightly cleaner fix would be to add

#ifdef _DUPLICATE
# undef _DUPLICATE
#endif

at the beginning of the .cpp file, but after the headers inclusion.

Mirek, do you plan to fix this ?

Lionel
Re: " 'AK_DUPLICATE' was not declared..." [message #21878 is a reply to message #21517] Tue, 09 June 2009 09:11 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
chickenk wrote on Sun, 24 May 2009 01:41

emr84 wrote on Sun, 24 May 2009 05:28

Sorry for not reply Embarassed . It works for me too.
But, is the "official" solution?

I don't think so. If it were it would have been implemented by Mirek.

A slightly cleaner fix would be to add

#ifdef _DUPLICATE
# undef _DUPLICATE
#endif

at the beginning of the .cpp file, but after the headers inclusion.

Mirek, do you plan to fix this ?

Lionel


I was not aware about this problem.

Maybe I can just put above into Core.h?

Mirek
Re: " 'AK_DUPLICATE' was not declared..." [message #21883 is a reply to message #21878] Tue, 09 June 2009 10:49 Go to previous messageGo to next message
chickenk is currently offline  chickenk
Messages: 169
Registered: May 2007
Location: Grenoble, France
Experienced Member
luzr wrote on Tue, 09 June 2009 09:11

chickenk wrote on Sun, 24 May 2009 01:41

emr84 wrote on Sun, 24 May 2009 05:28

Sorry for not reply Embarassed . It works for me too.
But, is the "official" solution?

I don't think so. If it were it would have been implemented by Mirek.

A slightly cleaner fix would be to add

#ifdef _DUPLICATE
# undef _DUPLICATE
#endif

at the beginning of the .cpp file, but after the headers inclusion.

Mirek, do you plan to fix this ?

Lionel


I was not aware about this problem.

Maybe I can just put above into Core.h?

Mirek


Why not, if it does not break other things... I preferred to do the fix locally, but I think indeed it would not harm to fix that in Core.h directly.

Lionel
Re: " 'AK_DUPLICATE' was not declared..." [message #21929 is a reply to message #21878] Thu, 11 June 2009 11:31 Go to previous messageGo to next message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
luzr wrote on Tue, 09 June 2009 09:11


I was not aware about this problem.

Maybe I can just put above into Core.h?

Mirek

Hello, Mirek.

You can put
#ifdef DUPLICATE
	#undef DUPLICATE
#endif

on the root of the problem - on the top of the IconDes/IconDes.key file.
#ifdef DUPLICATE
	#undef DUPLICATE
#endif

KEY(INSERT_IMAGE, "Insert image..", K_INSERT)
KEY(IMAGE, "Image..", 0)
KEY(REMOVE_IMAGE, "Remove image", 0)
KEY(DUPLICATE, "Duplicate", K_CTRL_D)

Re: " 'AK_DUPLICATE' was not declared..." [message #21945 is a reply to message #21929] Thu, 11 June 2009 22:50 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Sender Ghost wrote on Thu, 11 June 2009 05:31

luzr wrote on Tue, 09 June 2009 09:11


I was not aware about this problem.

Maybe I can just put above into Core.h?

Mirek

Hello, Mirek.

You can put
#ifdef DUPLICATE
	#undef DUPLICATE
#endif

on the root of the problem - on the top of the IconDes/IconDes.key file.
#ifdef DUPLICATE
	#undef DUPLICATE
#endif

KEY(INSERT_IMAGE, "Insert image..", K_INSERT)
KEY(IMAGE, "Image..", 0)
KEY(REMOVE_IMAGE, "Remove image", 0)
KEY(DUPLICATE, "Duplicate", K_CTRL_D)




OK, for now, why not.

Mirek
Previous Topic: IconDes Bug? (svn 629)
Next Topic: Ctrl-Shift-Z crashes theIde when there is nothing left to re-do
Goto Forum:
  


Current Time: Fri Mar 29 01:33:08 CET 2024

Total time taken to generate the page: 0.01477 seconds