You can not open exe files on someone else's computer? ? Static or dynamic link

# Causes: the teacher in the classroom to show us their program, students one by one took the u disk to copy the exe on your own computer instructor, and some people's u disk file is hidden. . . Some people reported drug u disk. . . Some people u disk error. . There are people who can not run the exe! ! ! This is awkward, ah, can not show the results, the results on the cold ah. . .

Reasons #
## 1. Some use vc ++ 6.0, it is also especially unstable Chinese version, some vs2010, some vs2019, some vs cdoe, cmake and other still relatively rare, publishing platform inconsistencies, may be new version is not compatible with older versions, the version is too old or lack some of the new library

## 2.32 and 64 questions
9210 in most of the new systems are 64-bit, 64-bit exe naturally can not run on 32-bit machines. . . . However, the software is compatible with 32-bit release can be 32 and 64. It is worth mentioning that the new 32-bit software is eliminated, and even the operating system is also such a development trend

## 3.debug and release versions of the difference between the
teacher saw someone open the exe did not know the reason anger. . . You say that you even debug version and release version can not tell it? ? Alas contemporary college students, debug and release versions actually could not tell
the debug: The generated exe file is larger and contains a lot of debugging information, intermediate information generated is also retained allowing you to debug interrupt viewing variable values, then the folder Double-click inside it is possible to run exe error, the program can not display the picture of what ah, but also because the exe rebuild adjusted so there will be such a situation.
release release: When using the release version of the software, compiler of the code has been optimized to run intermediate code is generated by the compiler faster and more compact, so the smaller release exe.

## 4 static linking and dynamic linking of difference.
Dynamic Link Library - dll, dynamic link libraries
can not run most of the time with this thing can not get away, missing dll dll or the wrong version.

Statically compiled sucked use of library functions recompiled into the exe, the exe generated in this way will be relatively big, but run slower.

#who am I? ?
If wrong, please correct me Paizhuan

My public number: An idea
is becoming a geek of the coder

Released three original articles · won praise 0 · Views 40

Guess you like

Origin blog.csdn.net/weixin_43031092/article/details/104447988