I am trying to compile ASIO with MinGW for my application, but I keep running into undefined reference to 'g_Templates', 'g_cTemplates', and 'vtable for AsioDriver'. I am linking with -lole32 -luuid. What additional libraries do I need to compile this?
Google found that this is a DirectShow filter, but MinGW should be able to compile against DirectShow.
I solved the problem by downloading Windows SDK and compiled the DirectShow base classes myself into strmbase.lib.
Related
Since there's no official aws iot device sdk for micropython, I'd like to compile embed the official C SDK into micropython as a user module.
I following the guide from micropython official documentation on how to compile an external C modules into micropython.
The first method I'd like to use is initializeMqtt(). I added the include directories to the makefile (e.g.: CFLAGS_USERMOD += -I$(LIBS)/$(OPENSSL_DIR)/include/). Then I could compile it, but after I got some linker errors in connection with openssl. I cloned openssl from the official openssl Github page, and update the include directories, and started to add the missing .c files to the makefile, to compile it in. After I had the same results, and tried to found the missing references (search in openssl source), and I add the neccessary .c files, to the makefile (e.g.: SRC_USERMOD += $(LIBS)/$(OPENSSL_DIR)/crypto/cryptlib.c). Now I got more and more linking, errors like:
undefined reference to X509_VERIFY_PARAM_move_peername.
undefined reference to tls1_set_groups_list
and so on.
I use MacOS, I have installed openssl, added the must have flags to .profile.
Is it even possible achieve what I want?
I'm new to c++ and trying to run the code here https://github.com/chussong/virasoro. After installing GMP and do a "make", I got the following error. I've no idea how to fix it now. Could anybody tell me what should I look into? Is that anything wrong with my gcc? Or how can I reinstall everything on my Mac to fix any possible issues? Thank you!
As mentioned in the comment above, a likely cause of the error above is that you have not installed libgmpxx, which is a supplementary library used by GMP to provide C++ class wrappers around the basic GMP library. If you built GMP from the source provided by the developers of the library (https://gmplib.org/) you can do this by specifying the --enable-cxx option when running configure. If you installed a packaged version from some repository, you should look at that repository to see if libgmpxx is also available there.
I keep getting this error:
ld: duplicate symbol _OBJC_CLASS_$_FlurryAutoIncrement in /Users/game/FlurryAnalytics/ libFlurryAnalytics.a(FlurryAutoIncrement.o) and /Users/game/FlurryAppCircle/libFlurryAppCircle.a(FlurryAutoIncrement.o)
I've followed the guides properly. My XCode version is 3.2.5 and Flurry SDK version is 3.0.6
Are you using Flurry analytics too? Can you check your build config? From our FAQ:
This will occur if the -ObjC or -all_load flags are used in your
build configuration. These 2 flags can not be used with Flurry's
modular sdk. However, Apple does provide a -force_load flag that is
both more efficient and does not cause issue when applied to other
libraries your app uses (note: force_load should only be used on
static libraries exhibiting this behavior. It should not be applied to
the Flurry Libs). More details can be found in this link
(http://developer.apple.com/library/mac/#qa/qa1490/_index.html).
Let me know if this doesn't solve your issue.
I'm trying to build a simple webcam application in C++. I'm using wxWidget for GUI and OpenCV for image and video operations. But I'm having trouble setting up OpenCV on my IDE. When i try to run a sample code, or any code for that matter, I get an error that says:
ld.exe cannot find -lhighgui
I'v properly given the library and include links to the IDE. OpenCV's path is also added, I checked. I even tried linking each library file individually but id didnt work.
Please Help. :)
I'm using Windows 7 Professional X64 and Code::Blocks 10.05
Any kind of help will be appreciated.
--Aayush Shrestha
OpenCV library files have been renamed with version 2.2. You can link to the new library opencv_highgui instead of highgui.
You also need to do this for other OpenCV libraries you use.
can anyone help me with linking libsox to my program in Windows? I have made a static library libsox.lib according to directions in INSTALL file in sox 14.2.0 source code version. Is there any way to build a dynamic library? I think it should be easier way...
What language are you using?
How are you currently building and linking the library?
This link gives some info on linking libraries in VC++ under windows, but without more info from you no-one will be able to help