linker

MvvmCross Android Linking Issue on Visibility Converter

白昼怎懂夜的黑 提交于 2019-12-23 15:24:21
问题 I know there are linking issues with Android and I know about using the LinkerPleaseInclude. However I am not sure what to put into the LinkerPleaseInclude.cs file for the problem I am seeing. I have a view which uses the Visibility converter to use a boolean IsBusy property to determine whether a number of controls should be displayed or not . I am using a ProgressBar, a TextView and an ImageView. I have tried a number of combinations to get the linker issue fixed. When deployed as debug it

vkCreateDebugReportCallback EXT not linking, but every other functions in vulkan.h works perfectly

强颜欢笑 提交于 2019-12-23 13:41:12
问题 So I have been trying to learn Vulkan lately, and while trying to get the validation layers to work, I got error LNK2019: 1>Renderer.obj : error LNK2019: unresolved external symbol vkCreateDebugReportCallbackEXT referenced in function "private: void __cdecl Renderer::_InitDebug(void)" (?_InitDebug@Renderer@@AEAAXXZ) Now the odd thing is that every other function in vulkan.h works perfectly. I have vulkan-1.lib linked, and I run the AMD implementation of vulkan. The library is from the Vulkan

Error while linking libxml2

强颜欢笑 提交于 2019-12-23 12:07:44
问题 I have a simple example for libxml2 but it returns the following error: $ gcc -Wall -lxml2 -I/usr/include/libxml2 -o ex1 ex1.c /tmp/cc6OKSKJ.o: In function `main': ex1.c:(.text+0x60): undefined reference to `xmlReadFile' ex1.c:(.text+0x70): undefined reference to `xmlDocGetRootElement' collect2: ld returned 1 exit status $ xml2-config --libs -lxml2 $ xml2-config --cflags -I/usr/include/libxml2 I'm on Lubuntu 11.10 x86_64 and I have all the packages I need (well I think): libxml2, libxml2-dev,

Android NDK: no archive symbol table

帅比萌擦擦* 提交于 2019-12-23 12:07:14
问题 I'm trying to port the FFTW library and some .cpp files to Android, using the 2.1.5 version of FFTW . I compiled it using the configure & make commands and I try to use it as a pre-built library. In my NDK project everything compiles with no errors, but when linking I get the following error: Compile++ thumb : water <= vertex.cpp Compile++ thumb : water <= face.cpp Compile++ thumb : water <= Solver.cpp Compile++ thumb : water <= Water.cpp SharedLibrary : libwater.so /Users/Xavi/Documents

How do I fix the linker error in project upgraded from VS2010 to VS2013 where the linker is looking for an MFC library file that is not present?

感情迁移 提交于 2019-12-23 12:03:41
问题 I am upgrading a VS2010 project to VS2013. One of my applications is looking for mfc120.lib (or mfc120d.lib for debug builds). However, it appears that VS2013 ships with mfc120* u *.lib and mfc120* u *d.lib (presumably unicode versions which is the only version of MFC supported by VS2013). Here are the linker errors I'm getting: LINK : fatal error LNK1104: cannot open file 'mfc120.lib' LINK : fatal error LNK1104: cannot open file 'mfc120d.lib' I'm looking through the project property sheets

Need help linking to bundle on OS X

ε祈祈猫儿з 提交于 2019-12-23 11:56:08
问题 I'm an experienced Java coder, but I'm new to XCode and C++, so sorry for the dumb question. I'm writing some c++ code in XCode that needs to instantiate a Java Virtual Machine. There is a method in the OS X Java plugin called JavaVM_GetJNIEnv(), and a header file in the source code from Sun/Oracle called JavaVM.h with these lines: // Gets the JNIEnv* associated with the Java VM, creating the JVM // instance if necessary. Note that the implementation of this routine // must be prepared for it

Need help linking to bundle on OS X

末鹿安然 提交于 2019-12-23 11:54:27
问题 I'm an experienced Java coder, but I'm new to XCode and C++, so sorry for the dumb question. I'm writing some c++ code in XCode that needs to instantiate a Java Virtual Machine. There is a method in the OS X Java plugin called JavaVM_GetJNIEnv(), and a header file in the source code from Sun/Oracle called JavaVM.h with these lines: // Gets the JNIEnv* associated with the Java VM, creating the JVM // instance if necessary. Note that the implementation of this routine // must be prepared for it

how to install libjpeg for windows?

試著忘記壹切 提交于 2019-12-23 11:51:04
问题 I downloaded some code that make use of libjpeg, but no dlls in the source files are included, and I'm trying to make it compile / execute correctly. I am using VS2010: in my source files I have #include "jpeglib.h" and in Linker > Input > Additional Dependencies I have jpeg.lib , both of which can't be found on my computer. I managed to go here : http://gnuwin32.sourceforge.net/packages/jpeg.htm and downloaded the "developer files" archives, which indeed contains the header and the .lib file

When trying to include '#include <boost/regex.hpp>' I get: 1>LINK : fatal error LNK1104: cannot open file 'libboost_regex-vc100-mt-gd-1_39.lib'

风格不统一 提交于 2019-12-23 10:58:25
问题 Not sure why i get that, I downloaded libs from here and while I have a lib called 'libboost_regex-vc90-mt-gd-1_39.lib I don't have one which is called 'libboost_regex-vc100-mt-gd-1_39.lib', renaming the one with vc90 to vc100 works but I'm not sure if this is the ideal solution? #include "stdafx.h" #include <regex> #include <boost/array.hpp> #include <boost/regex.hpp> #define BOOST_ALL_NO_LIB int _tmain(int argc, _TCHAR* argv[]) { boost::array<int, 10> a; boost::smatch s; getchar(); return 0

Compiling previously preprocessed file changes output

旧巷老猫 提交于 2019-12-23 10:28:17
问题 I have a source file which I preprocess using the options -E and -P (using GCC 4.1.2 for a vxWorks-based embedded platform). All other options are the same as when I compile the file. These options are: -Wall -march=pentium -nostdinc -O0 -fno-builtin -fno-defer-pop -g -c -o as well as all include-paths. Now when I compile this preprocessed file, the resulting object-file is much smaller (about 30%) than when I compile the original directly. And when I then link the program, the linker