SWI-Prolog / contrib-swiplcs

Interface from C# to SWI-Prolog
http://www.lesta.de/Prolog/SwiPlCs/Generated/Index.html
24 stars 10 forks source link

Header file missing from build? #8

Closed ITSPaul closed 5 years ago

ITSPaul commented 5 years ago

Hi I'm using VS 2019 targeting the latest Windows 10 SDK.

I have forked and cloned the repository when I build the solution

I get the following error Severity Code Description Project File Line Suppression State Error (active) E1696 cannot open source file "include/SWI-Stream.h" CalcStreamSize ..\contrib-swiplcs\CalcStreamSize\Main.cpp 36

It appears the header file is missing from the distrbution?

JanWielemaker commented 5 years ago

SWI-Stream.h is part of the SWI-Prolog distribution (as well as SWI-Prolog.h).

ITSPaul commented 5 years ago

OK. Thanks, Jan. VS wouldn't find the Environment Path variable. But I was able to map directly to the include folder. However, I'm still getting a linker error. Any ideas?

Severity Code Description Project File Line Suppression State Error LNK1104 cannot open file 'C:\Program Files\swipl\bin\libswipl.dll.akernel32.lib' CalcStreamSize \contrib-swiplcs\CalcStreamSize\LINK 1

JanWielemaker commented 5 years ago

Doesn't ring a bell. Surely, names like CalcStreamSize() do not appear in the SWI-Prolog sources. I doubt someone involved in this interface listens here. You may try the forum. Actually, you may search it as I vaguely recall there have been messages about this interface.