Jump to content
Sign in to follow this  
Stano

[Warning]: Include file not found: OBSIDIUM_ENC_START in line

Recommended Posts

I think that is a mistake.

[Warning]: Include file not found: OBSIDIUM_ENC_START in line 160 col 6
[Warning]: Include file not found: OBSIDIUM_ENC_END in line 196 col 22
[Warning]: Include file not found: OBSIDIUM_ENC_START in line 378 col 8
....
uses
...
  obsidium,
....

2022 11 01 21 34 35 JasotSVB_-_Delphi_11_-_ConsumptionReading_[Built].png

Share this post


Link to post

The vast majority look like this

{$IFNDEF DEBUG}
  {$I OBSIDIUM_ENC_START}
{$ENDIF}
  inherited;
  FqryService := TFDFunction.NewQry;
  FqryService.SQL.Text := obsSecureStringW('SQL Text...');
{$IFNDEF DEBUG}
  {$I OBSIDIUM_ENC_END}
{$ENDIF}

 

Share this post


Link to post

Are both include files existent with an .INC extension? In that case MMX just misses to use this as default extension.

Share this post


Link to post

That will be difficult with me. My knowledge is close to zero.
I don't remember such a notice before - but...
Some *.inc files exist. Where should they be for MMX to see them?
Or what should I do.
It's more of an aesthetic problem. I would like to get rid of him.

2022 12 02 19 55 07 obsidium_.inc_-_Everything.png

Share this post


Link to post

find some option to config your project on MMX, or, in your Delphi project

--- Project -> Options -> Compiling -> "Search path" .... and define where is the source files!!!

 

image.thumb.png.cf752fb50180233db4a8fc5b3aab1b96.png

 

Edited by programmerdelphi2k

Share this post


Link to post
  • if the file was not found on project-folder, then, you'll always needs in "Search path" in your project (Project->Options->Compiling...->Search...) or in IDE (Tools->Language->Delphi->Library Path...  but here, it's for when needs in all projects like when installing new packages, libs,etc...)
  • search all "*.INC" and see where it is in (folder), normally, it will be in "sources" folder!
  • if the project have many *.DPK, then, you have that updates it too!

 

See a example, if you dont want changes your Project-Options:

image.thumb.png.12b13a2003782a1d98e240c27bd888c4.png

Edited by programmerdelphi2k

Share this post


Link to post

NOTE: A warning about use of "folders of the System", like "Program files"!!!

  • as "folder system" always needs "admin privilegies", it's a common scenary have this access denied when try create new files, like when "building/compiling" your project!
    • sometimes there are not any critical error-message! simply the files it's not created and the IDE report some other message for that situation!
  • as general rule: DONT INSTALL YOUR PROJECTS, or any other that needs to be re-compiled/re-builded in "Program files" or other that needs any Admin priviligies!
    • create a new directory for this cases! like: C:\MyProjects\MySDKs
Edited by programmerdelphi2k

Share this post


Link to post

The problem is that MMX doesn't search for the INC files, because it misses to add the default extension. I will fix this in a future release. As a workaround you can try to add the .INC extension in the source - or wait for an MMX update.

Share this post


Link to post

If it's a question for me, then: No, I don't know what you're writing about. That is completely beyond me :classic_smile:

Share this post


Link to post

No it's just a surprise expression. Probably leftover of times when MMX was shareware? But now it's senseless IMHO

Share this post


Link to post

It is only since V15.1 that MMX tries to resolve include files. Before that any $I directive was just ignored (as was almost any other directive).

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×