| |

VerySource

 Forgot password?
 Register
Search
View: 915|Reply: 7

A bunch of problems with obj and lib

[Copy link]

1

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-3 23:40:01
| Show all posts |Read mode
After learning so long, some questions about the library have not been understood.
1. Are obj and lib only available in VC? Why mingw is .o and .a, although BCB also uses obj and lib, it seems that they are not compatible. Do different compilers have a uniform agreement?

2. There are many lib files in the VC installation directory. Is there a detailed description, which are statically linked libraries and which are dynamically linked libraries?

3. How is the latest dynamic link library lib for Windows? I copied the plamformSDK from VC2005 to VC6 and replaced it, so that many unavailable APIs can be used. Is there any problem? I feel that VC6 is all about things from the Win3.2 and Win95 era, many of which are incomplete. How do I find out which operating systems these libraries support?

4.Why VC6 compiled lib can be called in VC2005, but VC2005 compiled lib cannot be called by VC6. If it is a high version that is not compatible with the bottom version, then why does VC2005's lib can be called by VC6 and compiled Can't lib be called?

5. Since lib contains machine code, why is there a distinction between multi-threaded and single-threaded?
Reply

Use magic Report

1

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-1-4 00:06:01
| Show all posts
Forgot one: The libs that come with VC don't seem to distinguish between single-threaded and multi-threaded, why can they be compiled?
Reply

Use magic Report

0

Threads

18

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-8-3 09:00:02
| Show all posts
I also want to know and look forward to masters.
Reply

Use magic Report

1

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-8-3 19:45:01
| Show all posts
Someone answered. . .
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-4 22:00:01
| Show all posts
Obj and lib are not only VC, remember TC

lib is used for static link, dll is dynamic link

I'm also studying, and I want to know more, you can read some materials on the principles of compilation.
Reply

Use magic Report

1

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-8-11 08:45:01
| Show all posts
to Upstairs, the lib is also dynamic. For example, when you generate a dll, you basically need the header file .h, dynamic lib, and dynamic dll. Without a dynamic lib, you can only load the dll explicitly
Reply

Use magic Report

0

Threads

7

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-8-11 09:00:02
| Show all posts
lib is static.
The lib that the dll carries, there are only some descriptions in the lib, such as the declaration of functions or variables, etc. It is enough to only publish the dll when publishing.
Reply

Use magic Report

1

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-8-23 14:15:01
| Show all posts
Waiting for the master's complete answer
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list