The conflict between UnicodeString and FilePath linker

I am trying to include ai::FilePath in my project using its two files "IAIFilePath.cpp" and "AIFilePath.h"; However, it seems to be a contradictory function, each defined by check_result (AIErr) Sub which is defined in both static, so I get linker errors.

Any ideas anyone?

Thanks in advance.

Jeremy

Very strange. Sound does not complain about AIFilePath.h, he complains about IAIUnicodeString.cpp, which DOES not define check_result (line 54). Although both are static, so why would they be in conflict I have no idea. Two functions with the same name shouldn't matter as long as they are both static. Heck, if even one is static, it shouldn't happen. I'm trying to reproduce this error here and I can't.

And this is a mistake of the linker? C2084 is a compiler error, not linker error. C2084 is the error that you specified, but I can't actually get a compile error, no matter what I do; If I get the 'static' at the same time I get "LNK1169: one or more multiply defined symbols found. From the looks of the aid, the only way to get C2084 is actually set the function in the CPP even twice.

Tags: Illustrator

Similar Questions

Maybe you are looking for