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 |
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 |
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 #21883 is a reply to message #21878] |
Tue, 09 June 2009 10:49 |
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 . 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 |
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 |
|
mirek
Messages: 14038 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
|
|
|
Goto Forum:
Current Time: Fri Sep 20 04:36:41 CEST 2024
Total time taken to generate the page: 0.04610 seconds
|