c ++ development summary FAQ

When using visual studio c ++ development projects, often we encounter a variety of strange error, and some may take a long time to resolve and can not solve or even completely abandon a program. I would like to record it to solve complex problems before. Today the first to write encounter, constantly updated later.
1, unresolved external symbol.
If you reference opencv, ffmpeg libraries, etc., be sure to check whether the link is conventional and engineering properties of the input column joined the lib directory.
There are c ++ project if you want to reference source files can be directly c .c suffix changed to .cpp. If the reference such as ffmpeg library written in pure c language, use extern "C" {} wrap the #include statement. Otherwise it will error unresolved external symbol.
2, xxx has been rejected by
many libraries are frequently updated, api often change during the update process, if you find a file repository on github and other places, you installed a library than his new, it will encounter xxx error has been rejected and the like. This time directly to the project properties, c, c ++ routine inspection inside the SDL can be changed to No. If not only to download the old version of the library. Because we want to do the project is to resolve problems as quickly, looking for the old version of the api too slow in speed alternative to the new version.

Guess you like

Origin blog.csdn.net/qq_25349323/article/details/92724157