# SWI Prolog won't compile or load code

**URL:** <https://swi-prolog.discourse.group/t/swi-prolog-wont-compile-or-load-code/6475>\
**Category:** Help!\
**Tags:** how-to\
**Created:** [April 19, 2023, 8:59am UTC](https://swi-prolog.discourse.group/t/swi-prolog-wont-compile-or-load-code/6475 "2023-04-19T08:59:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sunspear51](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/sunspear51/32/5429_2.png) [@Sunspear51](https://swi-prolog.discourse.group/u/Sunspear51)\
**Post date:** [April 19, 2023, 8:59am UTC](https://swi-prolog.discourse.group/t/swi-prolog-wont-compile-or-load-code/6475/1 "2023-04-19T08:59:00Z")

</div>

I’m using: SWI-Prolog version 9.0.4 for x86\_64-linux

I want the code to: Load and compile by invoking [program], ['program.pl] or consult(‘program.pl’).

But what I’m getting is:  
?- edit(‘myfamily.pl’).  
true.

?- consult(‘myfamily.pl’).  
true.

?- consult(‘myfamily.pl’).  
true.

?- [‘myfamily.pl’].  
true.

?- [myfamily].  
true.

I’ve checked I’m in the same directory as the file. No idea what I’m missing, but it must be obvious.

Edit: Nevermind, figured it out. It was loading, I just wasn’t getting a compile message.

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [April 19, 2023, 9:42am UTC](https://swi-prolog.discourse.group/t/swi-prolog-wont-compile-or-load-code/6475/2 "2023-04-19T09:42:35Z")

</div>

> [@Sunspear51](#):
>
> I just wasn’t getting a compile message.

Compile messages are common in Prolog systems. They were nice in the days people loaded one or two files. Nowadays loading hundreds or thousands of files is not uncommon. That got a bit noisy. There is a Prolog flag `verbose_load` that can be used to change the verbosity. See current\_prolog\_flag/2, You can add a call to set\_prolog\_flag/2 to your personal init file.
