Jump to content
Excelsior Forums
oo

C Compiler not Finding IO.sym

Recommended Posts

Hi,

I have a project that I have managed to compile using the XDS Native x86 Compiler (though it does not quite execute.)

I then tried the C compiler without changing anything in the files, and it complains that it could not find ?IO.sym?. My errors look like

* [parallel.mod 3.06 F425]

* file open error: "IO.sym" no such file

FROM $IO IMPORT WrStr;

My command line looks like:

xm =m -WOFF+ +STORAGE +topspeed +M2 +M2EXTENSIONS OMAIN.MOD

I would be grateful if someone has some ideas on how to get rid of this error.

Thanks a lot.

O.O.

Share this post


Link to post
Share on other sites

The C library contains IO.h header. To avoid names conflict with the TopSpeed module IO, it is renamed to IO_, so you just need to IMPORT IO_. You can use the conditional compilation to compile the code both by XDS-x86 and by XDS-C compilers, for example:

<* IF __GEN_C__ THEN *>

FROM IO_ IMPORT WrStr;

<* ELSE *>

FROM IO IMPORT WrStr;

<* END *>

Share this post


Link to post
Share on other sites

Thanks again sleepyhead. This did it for me. I went thorough all of my files replacing IO with IO_ and everything compiled.

I now have to read your ReadMe file to see how to get this to further compile in C or C++. Perhaps I would do that over the weekend.

Thanks again.

O.O.

Share this post


Link to post
Share on other sites

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

×