#Help building c repo .exe/lib as .dll to use with managed code

3 messages · Page 1 of 1 (latest)

spice frost
#

https://github.com/Digilent/tcf.agent
I'm trying to build this tool that complies an exe as a dll I can import into c#/.net and use the unmanaged code in my managed project. I've never build a c program before. I was able to use cmake-gui to turn the github repo in a VS .sln project, I was then able to compile the project into a .exe and .lib file. I want to somehow compile the project in a .dll I can use with c# so I can write a program in a language I'm more familiar with.

I tried going to properties for tcf-agent and changed build config to .dll, also to Linker -> Input + Additional Dep and added kernel32.lib;user32.lib

When I build, I get a ton of errors: NK1120 34 unresolved externals tcf-agent C:\Users\User\Desktop\RE Tools\TCF lib\build\Release\tcf-agent.lib 1

marsh daggerBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

spice frost
#

!solved