Repository navigation
Rewrite OpenCV code in C - #13
Conversation
|
Does the same apply to #12? |
|
@dirk-thomas seems likely, should be easy to migrate #12 before merging it. |
|
+1 |
There was a problem hiding this comment.
|
I don't understand why this is happening ... C++ and C are normally interchangeable as they are replaced by one another (depending on the case). |
|
I'm a bit confused about the solution because the SO link you sent has no mention of the C API, but their solution was to add a magical preprocessor definition to the file. How did you arrive at this solution? |
|
@jacquelinekay at first I used the suggestion posted on SO on a simple test program, but it breaks linkage on our binaries, as all symbols must be compiled with |
6d9e021 to
ff17ff7
Compare
|
@vrabaud thanks for your feedback. Yeah, this happens with OpenCV 2.4.11. I had to build it myself because we're using VS2015 (vc14), which is not available in the official binaries. I don't know if the official binaries are affected or it's just my setup, I can dig a bit deeper, but it'll have to wait until next week. |
|
it could be an issue with though Although I don't really want to refactor this and #12 to the C API, I agree with Esteve that this is a rabbit hole and could take an undefined amount of time to debug. In the interest of time we should take this solution. |
|
if it's in c_str(), can you actually narrow down by using |
|
I also tested encoding (http://en.cppreference.com/w/cpp/language/string_literal) the title string in UTF8, UTF16, etc. (thanks @jacquelinekay for the idea), and it still doesn't work. The only way I got this to work fine is with |
ff17ff7 to
f55117a
Compare
This is needed to avoid this on Windows:
http://stackoverflow.com/questions/20854682/opencv-multiple-unwanted-window-with-garbage-name