Fail to compile external projects on linux, after introduction of None (Bug #1122)


Added by Ethan Rublee almost 14 years ago. Updated almost 14 years ago.


Status:Done Start date:
Priority:Low Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:core
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

I get errors like the following:

/u/erublee/opencv/trunk/opencv/modules/calib3d/include/opencv2/calib3d/calib3d.hpp:436: error: ā€˜0lā€™ cannot be used as a function

None is previously defined in X11/X.h as

#ifndef None
#define None                 0L    /* universal null resource or null atom */
#endif

Suggestions, cv::specialtypes::None or cv_None.


Associated revisions

Revision 2d2b8a49
Added by Vadim Pisarevsky almost 14 years ago

renamed "None()" to "noArray()" to avoid conflicts with X11 (ticket #1122)

Revision bd4d24f0
Added by Andrey Pavlenko over 11 years ago

Merge pull request #1122 from SpecLad:merge-2.4

History

Updated by Ethan Rublee almost 14 years ago

It appears that r5361 was the breaking commit.

Updated by Ethan Rublee almost 14 years ago

r5379 still doesn't address this issue.

Updated by Vadim Pisarevsky almost 14 years ago

probably fixed in r5381

  • Status changed from Open to Done
  • (deleted custom field) set to fixed

Updated by Ethan Rublee almost 14 years ago

works for me.

Also available in: Atom PDF