| tenpoundbear (19) | ||||||
|
Hi Guys! Wondering why I am getting these linking errors when I compile my code? HEADER File
CPP File
Under properties --> C/C++ --> General --> Additional Include Directories = ...\WinTap\cpdflib_ErrorDebug cpdflib.h actually lies at \WinTap\cpdflib_ErrorDebug\Debug\cpdflib.h I don't understand why I am getting these errors... I have the right settings in properties I am fairly certain. Any help be great guys! | ||||||
|
|
||||||
| Chrisxey (1) | |
| Sorry dear :( i have no any Idea right now... | |
|
|
|
| coder777 (2378) | |
| The include settings are right, but the linker needs at least the path to the library. Maybe the the name of it too. See the linker section of your properties | |
|
|
|
| tenpoundbear (19) | ||
|
Yep, I do have the correct linker settings I believe. Under properties --> C/C++ --> Linker --> Input --> Additional Dependencies = ...\WinTap\cpdflib_ErrorDebug\Debug\win32pdf.lib This is super annoying >< The errors
I don't get why cpdf_close is unresolved external symbol... since I have all the right properties settings, and that cpdflib.h is inlcuded correctly. Anything else you guys can see? Should I mention that this win32pdf is a DLL? Don't know if that is important... based on the error I don't think it is. cpdflib.h is from http://www.fastio.com/ by the way, and is described as "ClibPDF is a library of ANSI C functions, distributed as source code, for creating PDF files directly via C language programs..." I am wondering... is there also a .lib file for cpdflib.h also? Could that be the issue? | ||
|
Last edited on
|
||
| tenpoundbear (19) | |
| Sorry, may I bump this... | |
|
|
|
| coder777 (2378) | |
|
I've never try if libraries can have a path in that setting (I don't think so). There's the 'Additional Library Directories' where you're supposed to place the directories. the win32pdf.h is not affected by EXPORT_IMPORT?By the way: ShowPDFTX8504 is not exported since you don't use the macro EXPORT_IMPORT in front of it
| |
|
|
|
| tenpoundbear (19) | ||
Hi Guys,
Yes, that is intentional. I was just simplifying my error/problem when I posted above code. But I have made progress on this issue... it turned out there were more files, in fact there was a whole solution that I was unaware of that I managed to get my hands on. Cheers everyone :) | ||
|
|
||