In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1 scene
In the same solution, the testdemo main program module calls the dynamic link library zlib, so make the following property settings in the testdemo project:
Linker > input > additional dependencies: zlib.lib
Linker > General > additional Library Directory:..\ outputs\ release\ lib
The following error occurs when rebuilding the solution: unable to open the input file
Steps
Check that the zlib.lib file has been generated and all the environments are configured correctly, and then look at the complete compilation process and find that the compilation order is not correct. First compile the testdemo main program, and then compile the zlib module, of course, there will be problems.
Solve
Click the testdemo project, right-click to select the project dependency, select zlib, and make sure that zlib is compiled first, and finally the main program is compiled.
Problem 2:fatalerror LNK1112: module computer type "MIPS" conflicts with target computer type "THUMB"
Reference: http://www.jb51.net/softjc/83192.html
Solution: please select the same compilation platform as the solution.
Problem 5:CXX0017: error: symbol test1d.dll test2d.dll not found
Solution: because some modules in the solution provide release version of dll, the entire project cannot be placed in debug mode
The last d in the debug error message from debug represents the debug version of dll of debug So
Release must be selected in the solution configuration
Question 6: there is a lot of source code in the project, so if you modify a file code, it will take about 15 minutes to rebuild the solution.
It has not been tested to see if building a solution reduces compilation and linking time.
Solution: after modifying a file, there is no need to rebuild the solution, and then start debugging directly, automatically reproducing the modified file
New compilation.
Problem 7:error LNK2001: unparsed external symbol "public: virtual class CTest::TCodeEntry const *"
_ thiscall CTest::CTestImpl::GetItemByCode (unsignedint) "(? GetItemByCode@CTest@CTestImpl
@ @ UAEPBVTCodeEntry@2@I@Z) testimpl.obj
Solution: if you encounter this problem, it means that no real implementation is found in the process of linking. After half an hour of consulting the code, it is found that such as
The following questions:
Quote class A
It is called in the function Func (An a). In the actual process, An is defined as the struct structure class, which is the process of linking.
There is no way to find class A, which should be noted.
In the actual process, it is important to pay attention to whether the real implementation and declaration are consistent.
Question 8:error C2259TestQuery::CtestQueryImpl: can not instantiate abstract calss
Solution: first understand the virtual base class as the interface, all pure virtual functions must be implemented in the subclass, otherwise the compilation error, and then see when the
The previous compilation error indicates that the current virtual base class cannot be instantiated, indicating that there are pure virtual functions that have not been implemented, which can be checked by half an hour of code.
Read and find that the function declaration of the subclass is inconsistent with the function declaration parameter list of the base class, indicating that an error occurred in the process of copying the code, or
Modify the code, but the base class code is not synchronized
1) check how many base classes are inherited and whether the pure virtual interfaces of these base classes have been implemented
2) check whether any function in the derived class carries a pure virtual interface of = 0
3) the best way is to delete the previous code and rewrite it again. Syntax errors cannot be displayed in VS.
Question 9: unable to open the include file: "corecrt.h": No such file or directory
Compiling jsoncpp under VS2013 is normal, but the above error occurred in VS2015 compilation. You need to add the following to the include path:
C:\ Program Files (x86)\ Windows Kits\ 10\ Include\ 10.0.10150.0\ ucrt
Problem 10:runtime error! Abnormal program termination
Description: in the installation of VS2015 environment, normal operation, in the existing environment, just replace the executable program, there is an error like the above, initially suspected that some dynamic libraries have not been updated, so re-copy all dynamic libraries, but the configuration file has not changed, did not find the above problems
Question 11: This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _ CRT_SECURE_NO_WARNINGS
Solution 1: call the precompiled macro # pragma warning (disable:4996) in the file header where the function is called
Solution 2: fill in _ CRT_SECURE_NO_WARNINGS in the precompiler.
You can use the strcpy_s function, the secure copy function provided by VS. The second parameter specifies the size of the target buffer. If the source buffer is too large, it will be intercepted.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.