problem with includes

Discussions related to Visual Prolog
Post Reply
mdosnov2016
Active Member
Posts: 73
Joined: 19 Nov 2016 7:58

problem with includes

Post by mdosnov2016 » 15 Oct 2017 21:08

I have been receiving problems with includes in the 64-bit build.

for example clearly in the code I have:

#include @"pfc\\application\\exe\\exe.ph"
#include @"pfc\\filesystem\\filesystem.ph"
#include "TaskWindow\\taskWindow.ph"

#include "resourceIdentifiers.i"
#include @"pfc\\5xVIP\\5xBreakControl\\5xBreakControl.ph"
#include @"pfc\\exception\\exception.ph"
#include @"pfc\\console\\console.ph"

/*global*/ %domains
%#Migration: Declaration of FILE domain is moved to pfc\5xVIP\5xFile\fileSelector.i

#include @"pfc\\5xVIP\\5xFile\\fileSelector.i"
#include @"pfc\\5xVIP\\5xFile\\5xFile.ph"
#include @"pfc\\string\\string.ph"
#include @"pfc\\5xString\\5xString.ph"
#include @"pfc\\5xVIP\\5xPlatformSupport\\5xPlatformSupport.ph"


I checked and the directories are there.

but I receive instead errors like the following:

e100 The file 'pfc\5xVIP\5xFile\5xFile.ph' is not found backend.pack
e100 The file 'pfc\5xVIP\5xFile\fileSelector.i' is not found backend.pack

although all the directories and the files are in place.

Please help!

Michael Dossis
PrologUser

User avatar
Thomas Linder Puls
VIP Member
Posts: 2333
Joined: 28 Feb 2000 0:01

Post by Thomas Linder Puls » 16 Oct 2017 15:25

Can it find the other files that starts with pfc?

You should not use double slashes when the strings starts with @ (not that it solves your problem):

Code: Select all

#include @"pfc\application\exe\exe.ph" ...
This is wrong:

Code: Select all

#include @"pfc\5xString\5xString.ph"
it should be also have the 5xVIP component:

Code: Select all

#include @"pfc\5xVIP\5xString\5xString.ph"
Regards Thomas Linder Puls
PDC

Post Reply