fbpx

CRLF gives XS0103 error

More
1 year 2 months ago #1 by Mike Bertenshaw
CRLF gives XS0103 error was created by Mike Bertenshaw
Hi,

I'm attempting to build my Vulcan solution with XSharp 1.0.2 (plus XSharp103.zip files) in VS2017.

Apart from the many XS0165 errors (use of unassigned locals) that I've had to suppress, why am I getting XS0103 errors for every occurrence of CRLF when this is defined in XSharpDefs.xh?

Mike

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #2 by Dick
Replied by Dick on topic CRLF gives XS0103 error
Hello Mike,

Chris wrote us earlier (when we added a seperate define for CRLF):

#include "XSharpDefs.vh"

and CRLF should work.

So I think a missing include may result in XS103 - The name 'identifier' does not exist in the current context.

Dick

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #3 by Mike Bertenshaw
Replied by Mike Bertenshaw on topic CRLF gives XS0103 error
Hi Dick,

I was going to do that but it conflicts with the documentation where I read that XSharpDefs.xh was implicitly included in XSharp projects, but perhaps this only applied to new projects.

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #4 by Robert van der Hulst
Replied by Robert van der Hulst on topic CRLF gives XS0103 error
Mike,
Can you check the project properties, on the Build Page, the value for "Suppress Standard Header file".
If this says false, then the include should be included automatically and CRLF should be defined.
If you are having a problem even when the value says FALSE, then please then send me your xsproj file?

Robert

XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #5 by Mike Bertenshaw
Replied by Mike Bertenshaw on topic CRLF gives XS0103 error
Hi Robert,

The setting is FALSE. XSPROJ file attached as TXT.

Thanks,

Mike
Attachments:

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #6 by Karl Faller
Replied by Karl Faller on topic CRLF gives XS0103 error
Robert,
as we found, "false" is usually set (from template), but does not work until once swapped to true and back.
Just made a new Winform app, same behaviour as with console...
@Mike: did you try that?

Karl

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #7 by Chris Pyrgas
Replied by Chris Pyrgas on topic CRLF gives XS0103 error
Hi Karl,

I checked a little further, looks like the problem is related to what Robert described in his previous article about project files, VS and MSBuild, there's a typo in the project option what saved to file. This still looks Greek to me :), but I am sure Robert will be able to fix it.

Chris

XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #8 by Mike Bertenshaw
Replied by Mike Bertenshaw on topic CRLF gives XS0103 error
Hi Karl,

Yes, changing setting to TRUE then FALSE resolved this.

Thanks,

Mike

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #9 by Mike Bertenshaw
Replied by Mike Bertenshaw on topic CRLF gives XS0103 error
Hi Robert,

I've attached copies of another project file before and after editing as Karl suggested. I hope this helps.

Regards,

Mike
Attachments:

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #10 by Robert van der Hulst
Replied by Robert van der Hulst on topic CRLF gives XS0103 error
Mike,
Thanks for the examples. This is exactly what I expected.
We plan to release a new version next week that will fix this.

Robert

PS: I have moved the whole thread to the product form, where it makes more sense

XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #11 by Mike Bertenshaw
Replied by Mike Bertenshaw on topic CRLF gives XS0103 error
Thanks Robert. I wasn't sure which Forum to use since it's my first message here!

Just a few more errors to resolve which I'll post in separate threads.

Mike

Please Log in or Create an account to join the conversation.