-
January 2nd, 2019, 05:49 AM
#1
64 bit C++ and basis library file issues.
I am runing Windows 10 64 bit Home Edition.
I am using the 64 bit TDM compiler version 4.9.2.
I am programming with the Dev-C++ IDE.
I am considering the case of running my compiled executable on a similar PC.
I have the following questions about library files and their successful access, via #include
to a .cpp file with a main() method.
The pattern that I understand is that I update the linked with a -l command (with my IDE)
to the location of my library file. I then #include the desired .h header file, for the class that I need,
specify it via unix style path specifying with my #include. In this kind of a situation...
-If I simply rename a .a file as .lib, will everything work, ie compile and run successfully?
-If, in the instance of using a 64 bit .dll library file, in my main method file, I #include the correct class header,
and use -l to update the linker to the location of that .dll file, then will everything also run as described, similar to a .lib (.a ?) file?
Can I use a .dll file exactly the same as a .lib file, in this context?
-Are there 32 bit .lib files and 64 bit .lib files, or in fact not?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|