linker-errors

Extracting text from pdf using objective-c(libz.dylib)

北慕城南 提交于 2019-12-02 03:24:50
I have imported the pdf.h file in my view controller class and tried calling NSString *outPutString = convertPDF(pathToPdfFile); but while building it gives me linker error : _convertPDF" refrenced from: -[ScriptViewController searchBarSearchButtonClicked:] in ScriptViewController.o Symbol(s) not found I have also included libz.dylib in my project. What am I doing wrong? Is there any step to be followed before building the project which includes c code? Also one more question: Will this search algorithm work on any PDF(simple and formatted pdfs). abaraga Your must use the definition in the pdf

Qt linker error when adding class to basic Qt GUI application

流过昼夜 提交于 2019-12-02 03:05:22
I have been struggling for some time now and can't figure this out. I added a class to my basic Qt GUI application and i got linker errors. I don't see what can cause this and are hoping for feedback. Linker errors: main.obj:-1: error: LNK2019: unresolved external symbol "public: void __thiscall Serial::start(enum QSerialPort::BaudRate)" (?start@Serial@@QAEXW4BaudRate@QSerialPort@@@Z) referenced in function _main main.obj:-1: error: LNK2019: unresolved external symbol "public: __thiscall Serial::Serial(class QObject *)" (??0Serial@@QAE@PAVQObject@@@Z) referenced in function _main debug\Test

GTK+ 3.0 setup in Visual Studio 2013

时光毁灭记忆、已成空白 提交于 2019-12-02 02:48:07
问题 So I'm trying to use GTK+ 3.0 in Visual Studio 2013, and I followed this tutorial:How to configure gtk on Visual studio 2010. The problem is that whenever I try to build the solution, I get Linker errors. I'm using this code: #include <gtk-3.0\gtk\gtk.h> int main(int argc, char* argv[]) { gtk_init(&argc, &argv); GtkWidget* window = gtk_window_new(GTK_WINDOW_TOPLEVEL); //gtk_widget_set_usize(window, 300, 200); g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(gtk_main_quit), NULL); gtk

GooglePlus with CocoaPods linking error

末鹿安然 提交于 2019-12-02 02:32:50
问题 I added to my pod file pod 'google-plus-ios-sdk', '1.4.1' I did a pod update I imported #import <GooglePlus/GooglePlus.h> But if i try to [GPPSignIn sharedInstance].clientID = kClientID; I get this error from linker: Undefined symbols for architecture i386: "_OBJC_CLASS_$_GPPSignIn", referenced from: objc-class-ref in SDSocialManager.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) 回答1: In my experience linker

“Undefined Symbol _memset”

感情迁移 提交于 2019-12-02 00:47:55
I asked a similar question, but I have some update which is really confusing me. Essentially, I want to link a number of object files with the linker as follows: /usr/ccs/bin/ld -o q -e start_master -dn -z defs -M ../../../mapfile.q {list of object files} I get the following error: Undefined first referenced symbol in file _memset reconf.o The interesting things is, that memset is not referenced in reconf.c and I also grep'ed the whole directory but there is also no reference in any of the other files to _memset. Therefore I am wondering why I get this error message from the linker, although

linker error when using tr1::regex

余生长醉 提交于 2019-12-02 00:24:55
I've got a program that uses tr1::regex , and while it compiles, it gives me very verbose linker errors. Here's my header file MapObject.hpp: #include <iostream> #include <string> #include <tr1/regex> #include "phBaseObject.hpp" using std::string; namespace phObject { class MapObject: public phBaseObject { private: string color; // must be a hex string represented as "#XXXXXX" static const std::tr1::regex colorRX; // enforces the rule above public: void setColor(const string&); (...) }; } Here's my implementation: #include <iostream> #include <string> #include <tr1/regex> #include "MapObject

memcmp linker error Visual Studio 2015

ぃ、小莉子 提交于 2019-12-02 00:08:37
I have a visual studio 2012 c++ project. I recently uninstalled it and installed visual studio 2015 and upgraded the project. When i am building the project, getting error as shown below: Error LNK2019 unresolved external symbol _memcmp referenced in function Moreover i have not used anywhere in my code memcmp fucntion. I used the linker verbose function and could see below in output file: Found _memcmp Referenced in MyC++Project.obj Referenced in libcpmtd.lib(xstrcoll.obj) Loaded libvcruntimed.lib(__memcmp_.obj) Two questions here 1.even though i have not used memcmp in my code why i am

Linker errors with Fortran to C library - /usr/lib/libf2c.so: undefined reference to 'MAIN__'

ⅰ亾dé卋堺 提交于 2019-12-01 23:00:55
问题 So I'm having a little trouble with the fortran to C library. Now, before I get into the problem, I can tell you that I cannot use g2c as some forum sites have suggested. Now, to the problem. When I try to compile a very large project, I get the following: [from the makefile...] g++ -L [~200 dirs] -l [~200 libs] -lf2c /usr/lib/libf2c.so: undefined reference to 'MAIN__' collect2: ld returned 1 exit status make: *** [all] Error 1 Now, I have checked my /usr/lib directory and have come up with

duplicate symbol linker error due to libWeANDSFLibrary.a(ASIReachability.o)

浪子不回头ぞ 提交于 2019-12-01 22:58:11
I am using ASI ( ASIHTTPRequest , ASIDownloadCache , Reachability etc) request. Now in my project, I am using reachability.h and .m file.I have added one third party library and in that library I came to know that they are also using ASI library. But as per my knowledge they are using ASIReachability class instead of Reachability . So I added that .h file as well. Still I am getting linker error which says : duplicate symbol _kInternetConnection in: /Users/goutham.v/Library/Developer/Xcode/DerivedData/My_TWCable-fyaebjpvvaprmgdgtirhzshodpky/Build/Intermediates/My TWCable.build/Debug

Serialization example of boost/archive/binary_woarchive.hpp and/or boost/archive/binary_wiarchive.hpp?

孤街醉人 提交于 2019-12-01 21:54:55
I'm trying to find a good example of how to use these binary wide character versions of boost's serialization stuff. I pieced together some code to try and get it working, but unfortunately I get bombarded with linker errors when trying to compile it. Here's my code, in case I'm doing anything obviously wrong: #include <cstdlib> #include <iostream> #include <fstream> #include <string> #include <vector> #include <boost/archive/binary_woarchive.hpp> #include <boost/archive/binary_wiarchive.hpp> class testClass { public: testClass() { } testClass(const int intInput, const std::wstring stringInput