Попытка создать DLL из репозитория Microsoft PICT.C#

Место общения программистов C#
Ответить
Гость
 Попытка создать DLL из репозитория Microsoft PICT.

Сообщение Гость »


I'm trying to build a dll for the microsoft PICT model:

https://github.com/microsoft/pict

My objective is to be able to call the model API from another code project.

I modified the makefile in order to produce a dll on windows instead of a so Here are the changes:
  • Added TARGET_LIB_DLL=libpict.dll as an environment variable
  • Added the following target

$(TARGET_LIB_DLL): $(OBJS) $(CXX) -fPIC -shared -static-libgcc -static-libstdc++ $(OBJS) -o $(TARGET_LIB_DLL) Running make libpict.dll did generate a dll.

I've been trying to validate this dll using dependency walker and it returns me the following: Error: At least one required implicit or forwarded dependency was not found.

There are many missing dlls and they all seems to belong to API-MS-WIN.*, AZUREATTESTMANAGER, WPAXHOLDER and EXT-MS-ONECORE.*

I am quite rusted with Cpp as I haven't touched it in decades, would you have any idea how I could solve this, maybe I also need to modify the code in the Microsoft repository to make sure I export the methods I want to use, they are located in picapi.h but I don't see any export there.

Also, I could use the executable directly (I can build it and it works), but I need to be able to access the API methods directly via the code, and not via the command line.

I will take any advice that will help me achieve that :) thanks


Источник: https://stackoverflow.com/questions/781 ... repository
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C#»