There is a strange problem today , A third party Library , Provides A.dll and A.lib, When compiling, you can use , It always reports errors when running , Say we can't find it A.dll.

I was there main There's a breakpoint in the function , I found that I didn't get in main Function has already reported an error , It should be in the entry function when error 了 . Can't find load dll(load library) Function of , I don't understand why it's wrong .

Only later did I know ,lib It actually contains very little , use txt Open it , Found only a few third-party function names , And a bunch of numbers

func A.dll A.dll/        1470723205              0       67

therefore , Actually lib It contains dll The position of the corresponding function in , There is no concrete implementation , When running, you need to first dll load Come in , I found that I was not there , Of course, it's wrong .

This is from someone else sample code The realization inside , It's not our realization . Our implementation only includes dll This one ,lib No need , Then use it directly in the source code loadlibrary The way , hold dll load Come in , So there was no dll Words , We don't have a problem compiling , And there will be problems when it runs .

dll and lib-- More related articles about elementary

  1. Suffix name “.dll .obj .lib” and “ .so .o .a” The different meanings of documents

    (1) .dll .obj .lib Use in windows Under the platform .        .dll: Dynamic link library , Executable file as shared function library .        .obj: Target file , Equivalent to the binary file corresponding to the source code , without ...

  2. DLL and LIB Some knowledge points of ( Online collection )

    About lib and dll The difference is as follows :(1)lib It's used when compiling ,dll It's used at runtime . If you want to compile the source code , It only needs lib: If you want to make the dynamic link program run , It only needs dll.(2) If there is dll file , that lib One ...

  3. VS2010 C++ In the environment DLL and LIB File directory and name modification

    VS2010 C++ In the environment DLL and LIB File directory and name modification from :http://blog.csdn.net/archielau/article/details/8507581 DLL engineering ,Debug edition ...

  4. C++ Export file suffix dll,lib,exp,def

    Let's give a brief introduction to Microsoft development tools (VC) Static link library and dynamic link library generated in the process of .dll  .lib  .def and .exp file type .windows The executable on the platform may be a .exe There could be four files .dl ...

  5. load dll、lib library

    2. It's about how to load dll or lib Library . You can read this article bog   Qt call dll Click to open the link ************************************************** ...

  6. VS2008 Next WinRar Source code generation dll and lib summary

    WinRar The official source code (http://www.rarlab.com/rar_add.htm): If you want to modify the content, you have to regenerate it DLL and LIB, I found a lot of information on the Internet, but I didn't make it very clear . It took a day or two ...

  7. By dynamic library file dll Generate lib The library files ( Generate... Manually .def file , And then use lib Command compilation , Very good ), Similarly, we can use dll Generate .a The library files

    This article is based on OpenBlas Build and install , To illustrate how to start from a dll File generation lib The library files . Reference resources OpenBlas Explanation “Howto generate import library for MingW”, and Mi ...

  8. DLL and LIB

    stay StackOverflow I see a question in “what's the difference between DLL's and LIB's?” The following reply is worth referring to : Reply one :

  9. DLL、lib And so on link library file use

    Due to the use of dynamic link library many times , I wrote about it myself DLL, Every time we have to work hard to configure , Now let's briefly summarize , Try to avoid detours in the future ! There are usually three files : .h   The header file .lib   Static link library .dll   Dynamic link library ...

  10. dll and lib( Including static link library and with dll Generated at the same time lib)

    turn :http://blog.csdn.net/galaxy_li/article/details/7411956 1: What is god horse? Dll and Lib, Shenma is static link and dynamic link Everybody knows that ,DLL It's the dynamic link library , ...

Random recommendation

  1. Apache Master profile httpd.conf Detailed explanation

    Apache Primary profile for :/etc/httpd/conf/httpd.conf Default site home directory :/var/www/html/ Apache All the configuration information of the server is stored in the main configuration file /etc/httpd/co ...

  2. Amway eclipse Plug in log4E

    After typing the code , It's said to be annotated . Add log:OTL~~~~~~~~, As I look up and sigh , Master sent me a plug-in package , decompression --> Copy --> restart --> Get things done . The installation method has been so convenient , It's a cancer of my generation ...

  3. SQL Server 2012 Implementation and management practice guide ( note )——Ch6 Connection establishment and troubleshooting

    6. Connection establishment and troubleshooting The establishment of a conversation is divided into 2 Parts of : 1. Connect , That is to find this example 2. authentication , tell sql server Who wants to connect Catalog 6. Connection establishment and troubleshooting 6.1 Protocol selection and alias 6.1.1 Server network configuration ...

  4. Idea Of Git Use

    In the use of Git Come on pull and push There will be conflicts when the code is running , If it is not handled properly, there will be problems that cannot be solved pull and push The code situation . So this is very necessary to pay attention to . So I'd like to make a summary of myself : 1. Let's take a look at idea Of Git ...

  5. HTTP - PUT Upload files /Shell

    Today I met a few PUT Upload point , But it didn't work . In a fit of rage , I tried it in my own place . Steps are as follows : One . Environmental Science : First , according to   To configure Apache The server supports sending to the directory PUT file   Update httpd.conf file , Restart all servers ...

  6. HTML Small and medium sized problems

    1.a The label does not add href When this property , The mouse will not turn into a hand ~

  7. Team work 8—— The second project sprint (Beta Stage ) 5.19

    Day1--5.19 1. Start a standing conference ( Photographer : Wu Jiannan ): The content of the meeting :(1) New members introduce themselves , So that we can get familiar with each other faster and work together . (2) Because our former project manager went to another group , So we voted for Lin Qiaohua as my new member ...

  8. Redhat About China httpd Brief steps of warehouse installation

    establish repo-server: yum install httpd yum  install  httpd  -y       < -y It means to reply automatically when interacting with the interface during installation yes >sys ...

  9. unity3d Under the project of data file effect

    projectData In folder data file: 1. Player settings – globalgamemanagers and globalgamemanagers.assets fil ...

  10. P4211 [LNOI2014]LCA

    P4211 [LNOI2014]LCA link analysis : First of all, an interesting transformation is , Put all the points to 1 All along the way +1, then z To 1 The sum on the path of , That's all the answers deep And . For many inquiries , Or consider taking the inquiry offline , province ...