![]() |
| | #1 |
| HelpingYouHelpUsHelpUsAll Join Date: Dec 2007 Location: In your nightmares
Posts: 223
| pdh.a Missing?
__________________ long time no C; //seige You miss 100% of the people you don't C; Code: if (language != LANG_C && language != LANG_CPP)
drown(language);
|
| P4R4N01D is offline | |
| | #2 |
| and the hat of Jobseeking Join Date: Aug 2001 Location: The edge of the known universe
Posts: 21,665
| IIRC, there's a tool to convert a .lib to a .a Look in the dev-c++ bin directory. |
| Salem is offline | |
| | #3 |
| HelpingYouHelpUsHelpUsAll Join Date: Dec 2007 Location: In your nightmares
Posts: 223
| Since I am missing this file it should come as no surprise that I don't have this tool - It is a wonder the program ships with anything (ha, run it to discover you need to download the rest of the files manually). I don't have IIRC and just becuase I need it, I haven't found anywhere to download it. I have gone through all of the programs in the bin directory and none of them will take .lib files. Any suggestions?
__________________ long time no C; //seige You miss 100% of the people you don't C; Code: if (language != LANG_C && language != LANG_CPP)
drown(language);
|
| P4R4N01D is offline | |
| | #4 |
| C++ Witch Join Date: Oct 2003 Location: Singapore
Posts: 11,315
| Perhaps lcc-Win32's lib files are not compatible with MSVC/MinGW. I had the impression that the MinGW port of gcc and g++ can use the MSVC lib files simply by renaming them to have a .a extension. With the dll and the corresponding .def file, you could use MinGW's dlltool to generate the library archive for you, so perhaps you could check if a .def file is supplied with the library.
__________________ C + C++ Compiler: MinGW port of GCC Build + Version Control System: SCons + Bazaar Look up a C/C++ Reference and learn How To Ask Questions The Smart Way |
| laserlight is offline | |
| | #5 |
| HelpingYouHelpUsHelpUsAll Join Date: Dec 2007 Location: In your nightmares
Posts: 223
| Nope, renaming extensions is always one of the first things I try. They are a different file format and not compatible with each other (why couldn't they just stick to one file type, so every compiler either uses lib or a files). With my luck, I don't have any .def files (except the one for the dll that I wrote, doesn't count though). I do have dlltool though.
__________________ long time no C; //seige You miss 100% of the people you don't C; Code: if (language != LANG_C && language != LANG_CPP)
drown(language);
|
| P4R4N01D is offline | |
| | #6 |
| HelpingYouHelpUsHelpUsAll Join Date: Dec 2007 Location: In your nightmares
Posts: 223
| /*Don't worry I found the file on the same site. I found a .def file for pdh (googled pdh.def which took me so long to think of), I tried compiling it with dlltool but it returns: Code: [Linker error] undefined reference to `PdhEnumObjectItemsA@36' Code: bin\dlltool -l lib\libpdh.a lib\pdh.lib lib\pdh.def Now, why does Dev-C++ not like this: Code: INITCOMMONCONTROLSEX cc; //Gives: 584 `INITCOMMONCONTROLSEX' undeclared (first use in this function) and syntax error before "cc" Last edited by P4R4N01D; 06-04-2008 at 12:37 AM. Reason: Fixed one problem now onto another... |
| P4R4N01D is offline | |
![]() |
| Tags |
| library |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Errors including <windows.h> | jw232 | Windows Programming | 4 | 07-29-2008 01:29 PM |
| failure to import external C libraries in C++ project | nocturna_gr | C++ Programming | 3 | 12-02-2007 03:49 PM |
| more then 100errors in header | hallo007 | Windows Programming | 20 | 05-13-2007 08:26 AM |
| ras.h errors | Trent_Easton | Windows Programming | 8 | 07-15-2005 10:52 PM |
| pointer to array of objects of struct | undisputed007 | C++ Programming | 12 | 03-02-2004 04:49 AM |