dll

C# : Referencing or using .so files in .NET Core on Linux

一世执手 提交于 2020-06-29 03:44:30
问题 We have a project on .NET Framework that references the Fico Xpress solver dll. The dll’s required are – Xprb.dll Xprbdn.dll Xprsdn.dll As no nuget packages are available for using Fico Xpress Solver, we installed the Fico Xpress Solver and copied these dll’s from the installation directory to our local folder named lib inside the project folder and added path reference to these dll’s inside the lib folder. So when compiling, the project uses the reference of these dll’s (present in the lib

How to know full paths to DLL's from .csproj file?

隐身守侯 提交于 2020-06-27 12:17:34
问题 I wonder if there is some way to know full paths to the dll's that are listed in .csproj file. The most interesting for me is to resolve paths to default dll's like System.Xml.dll, System.Data.dll and etc. In the .csproj file there are only lines with short names: <Reference Include="System.Xml.Linq"> <RequiredTargetFramework>3.5</RequiredTargetFramework> </Reference> <Reference Include="System.Data.DataSetExtensions"> <RequiredTargetFramework>3.5</RequiredTargetFramework> </Reference>

Linking dll/lib to a cmake project

此生再无相见时 提交于 2020-06-27 08:42:14
问题 I was trying to link a library to my cmake project but I was getting linker errors. I spent 2 hours trying to resolve the problem and I created simple project where I hardcoded all the paths. CMAKE_MINIMUM_REQUIRED(VERSION 3.0) PROJECT(Testing CXX) INCLUDE_DIRECTORIES("B:/Projects/TMH/Libraries/Awesomium/inc") SET(SOURCE_FILES src/Main.cpp src/Application.cpp src/Window.cpp ) ADD_EXECUTABLE(Testing ${SOURCE_FILES}) TARGET_LINK_LIBRARIES(Testing B:/Projects/TMH/Libraries/Awesomium/bin

Error in inDL(x, as.logical(local), as.logical(now), …) : unable to load shared object

烈酒焚心 提交于 2020-06-17 14:51:46
问题 I'm having this error when trying to attach package tidyselect and when trying to call tidyselect::any_function . The error happens in Rstudio or command line alike, in RStudio it is triggered as soon as I type: tidyselect:: , though ?tidyselect:: works fine and I can call the help of ?tidyselect::any_function . This also works: packageVersion("tidyselect") # [1] ‘0.2.4 It used to work, and I don't understand what changed, I just know package rjava has been installed, the admins might also

Specifying the DEF file when compiling a DLL with Clang

a 夏天 提交于 2020-06-17 09:39:27
问题 I am trying to compile a DLL using clang in windows clang -shared structs.c -o structs.dll but the symbols aren't being exported.. If I add __declspec(dllexport) to my declarations in structs.h, They symbols are exported to DLL. But instead, I would like to do this using a DEF file (structs.def) I created, But I can't find how I pass the DEF file to clang. Any help is appeciated :/ 回答1: Finally figured it out - We can use the -Wl flag in clang to pass some comma-separated arguments to the

Specifying the DEF file when compiling a DLL with Clang

丶灬走出姿态 提交于 2020-06-17 09:39:26
问题 I am trying to compile a DLL using clang in windows clang -shared structs.c -o structs.dll but the symbols aren't being exported.. If I add __declspec(dllexport) to my declarations in structs.h, They symbols are exported to DLL. But instead, I would like to do this using a DEF file (structs.def) I created, But I can't find how I pass the DEF file to clang. Any help is appeciated :/ 回答1: Finally figured it out - We can use the -Wl flag in clang to pass some comma-separated arguments to the

import directory of a DLL does not work on 64bit dll

与世无争的帅哥 提交于 2020-06-17 04:19:39
问题 I am trying to print the bitness and dll's that needs to be loaded for a given dll. My code looks like this (simplified version;without error checking): fh = CreateFile("my_dll_file.dll", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); fm = CreateFileMapping(fh, NULL, PAGE_READONLY, 0, 0, NULL); base_pointer = (char *)MapViewOfFile(fm, FILE_MAP_READ, 0, 0, 0); pe = ImageNtHeader(base_pointer); oh = pe->OptionalHeader; mi = oh.Magic; switch (mi) { case IMAGE

import directory of a DLL does not work on 64bit dll

狂风中的少年 提交于 2020-06-17 04:19:31
问题 I am trying to print the bitness and dll's that needs to be loaded for a given dll. My code looks like this (simplified version;without error checking): fh = CreateFile("my_dll_file.dll", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); fm = CreateFileMapping(fh, NULL, PAGE_READONLY, 0, 0, NULL); base_pointer = (char *)MapViewOfFile(fm, FILE_MAP_READ, 0, 0, 0); pe = ImageNtHeader(base_pointer); oh = pe->OptionalHeader; mi = oh.Magic; switch (mi) { case IMAGE

Cygwin 64-bit cannot early-bind to DLL created by MSVC , giving __cxa_atexit error

风格不统一 提交于 2020-06-16 17:02:48
问题 Here is the C++ program compiled by up-to-date Cygwin64 (gcc/x86_84-pc-cygwin/9.3.0): extern "C" __declspec(dllimport) void foo(void); int main(void) { foo(); return 0; } with commandline: g++ -o mre.exe mre.cc /f/temp/simpledll/x64/Debug/simpledll.lib For SimpleDLL I created a new Windows C++ DLL using VS Community 2019, switched to x64 target, disabled PCH, and added simpledll.cpp: extern "C" __declspec(dllexport) void foo(void); void foo(void) { MessageBoxA(NULL, "In simpledll foo", "Title

Cygwin 64-bit cannot early-bind to DLL created by MSVC , giving __cxa_atexit error

て烟熏妆下的殇ゞ 提交于 2020-06-16 17:01:45
问题 Here is the C++ program compiled by up-to-date Cygwin64 (gcc/x86_84-pc-cygwin/9.3.0): extern "C" __declspec(dllimport) void foo(void); int main(void) { foo(); return 0; } with commandline: g++ -o mre.exe mre.cc /f/temp/simpledll/x64/Debug/simpledll.lib For SimpleDLL I created a new Windows C++ DLL using VS Community 2019, switched to x64 target, disabled PCH, and added simpledll.cpp: extern "C" __declspec(dllexport) void foo(void); void foo(void) { MessageBoxA(NULL, "In simpledll foo", "Title