Author Topic: [SOLVED] Using macro: _file_open(), _file_read(), _file_close()  (Read 1803 times)

Iosif Stalin

  • Community Member
  • Posts: 12
  • Hero Points: 0
[SOLVED] Using macro: _file_open(), _file_read(), _file_close()
« on: December 24, 2018, 02:26:37 PM »
I have create a macro (example.e) with _file_open(), _file_read(), _file_close() inside. Macro work fine. I compiled and start them by typing "example" in command line.
Then I copypast the code from example.e to project.e. And when I try to compile the code by typing "st project.e" I get an error "Expecting procedure name - identifire not found - import may be required". What I am doing wrong?
« Last Edit: December 25, 2018, 11:59:15 AM by Iosif Stalin »

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6937
  • Hero Points: 531
Re: Using macro: _file_open(), _file_read(), _file_close()
« Reply #1 on: December 24, 2018, 09:57:04 PM »
If you copied project.e to a different directory (maybe so you have write priveledges), the includes and imports in project.e might be finding the wrong macros. That's my guess. If you didn't copy project.e, try compile the original version just to see if you can compile it. Of course, will you will need write priveledges to be able to compile it.

Iosif Stalin

  • Community Member
  • Posts: 12
  • Hero Points: 0
Re: Using macro: _file_open(), _file_read(), _file_close()
« Reply #2 on: December 25, 2018, 11:57:23 AM »
There is the #pragma options (pedantic, on) in project.e.
When I have took my code into a #pragma options(pedantic, off)...#pragma options(pedantic, on) the error has gone.
After copypaste a several strings of code into project.e I have "code size too large" error.
Then I create separeted *.e file and add to the project.e only a call (without pedantic_off/on in project.e or in my *.e file) and the error did't appear.