Recent

Author Topic: Can someone tell me what this means?  (Read 914 times)

jamie

  • Hero Member
  • *****
  • Posts: 7770
Can someone tell me what this means?
« on: March 28, 2026, 09:06:49 pm »
Quote
Warning: Only one source file supported, changing source file to compile from "=" into "C:Char"
Warning: Only one source file supported, changing source file to compile from "C:Char" into "Cad.lpr"

anything ?

That shows in the Message window after I compile my app but it seems things are ok?

Jamie
The only true wisdom is knowing you know nothing

n7800

  • Hero Member
  • *****
  • Posts: 710
  • Lazarus IDE contributor
    • GitLab profile
Re: Can someone tell me what this means?
« Reply #1 on: March 28, 2026, 09:26:11 pm »
https://www.freepascal.org/docs-html/user/userse70.html

Quote
Warning: Only one source file supported, changing source file to compile from ”arg1” into ”arg2”

You can specify only one source file on the command line. The last one will be compiled, others will be ignored. This may indicate that you forgot a ’-’ sign.

It looks like there is an error somewhere in your project's compilation parameters.

jamie

  • Hero Member
  • *****
  • Posts: 7770
Re: Can someone tell me what this means?
« Reply #2 on: March 28, 2026, 09:38:11 pm »
ok I found this in my "customOptions"

Quote
-dTCHAR = C:Char

I don't remember putting that there but that is the only place in my project-options I find at least the "c:char"

maybe I need a space between the -d xxxx?

Jamie
The only true wisdom is knowing you know nothing

n7800

  • Hero Member
  • *****
  • Posts: 710
  • Lazarus IDE contributor
    • GitLab profile
Re: Can someone tell me what this means?
« Reply #3 on: March 28, 2026, 09:59:29 pm »
This is a macro that replaces the word "TCHAR" with "C:Char" in your code. I don't know why exactly this is needed, but the compilation warning is precisely because you have spaces around the equals sign "=", which shouldn't be there. Everything should be in one word "-dTCHAR=C:Char".

jamie

  • Hero Member
  • *****
  • Posts: 7770
Re: Can someone tell me what this means?
« Reply #4 on: March 29, 2026, 03:27:46 pm »
Ok, I think originally the intent was to do this.

"TChar = WideChar"

I will address this issue, Thank you.

Jamie
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018