Watcom Compiler

Hello,

 

Whenever I use the compiler in Maple 12 ...I get an error message that it cannot create a directory becuase of write permissions.  I have opened up all permissions that I can think of.  Am I missing something ??

 

Thanks

JacquesC's picture

Platform?

What platform are you on?  Maple might be trying to write into a directory where indeed you don't have write access to, but the directories used rather depend on the platform (and you user priviledges).

Hello,   I am using Windows

Hello,

 

I am using Windows XP. I will try to open up more privaledges.  I thought I got them all ???

gkokovidis's picture

Just a thought

Question:  Does the directory that you are trying to write to have spaces in the name?  If so, first create a directory without spaces in the name and then try writing to it from the Watcom compiler.  In previous versions, the Watcom compiler had issues with spaces in directory names.

 

Regards,
Georgios Kokovidis
Dräger Medical


Axel Vogt's picture

blanks in names

I already care for that installing Maple (on Win), so I correct the default 
"Maple 12" to "Maple12" (can not remember the Watcom directory)
Uninstalling and using that is not much work (guess even your licence file
can be used again, if you keep a copy)

Yes the compiler is writing

Yes the compiler is writing to directory "Maple 12" wich has a space.

 

I reinstalled Maple 12 to directory Maple12 without the spce and it corrected the problem.  The only thing is that on startup of the program, it complains that there is a security error since it can't find directory Maple 12 with the space.  I guess it likes the default.

 

If someone can tell me how I can force the watcom compiler to write to a specific directory which I can create myself....this would solve my problem.

 

Right now it defaults to the main Maple 12 directory.

 

thanks

JacquesC's picture

This is dumb

If the Watcom compiler, which comes with Maple 12, is known to not work properly in directories with spaces in the name:

1. Why does Maple install in a directory with a space, thereby neutering one of its own features?

2. Why wasn't this caught before shipping?

3. Why is the default directory for the compiler one which will cause failure?

There must be something more to it than that!  [The people at Maplesoft are more competent than to let such an obvious bug ship, we have to believe that.]

Axel Vogt's picture

older problem

I think it is known for longer, not specifical for Watcom, but also for the old Microsoft MSVC6 (from where I learned that (think it was pointed out to me by Alec Mihailovs): the Maple libs where not found while playing with Open Maple and external callings, www.axelvogt.de/axalom/maple/maple-external/index.html).

Even if blanks are correct on Win, they do not always work properly - and there is no need to use that for directories (however other software vendors do such things as well ... even MS)

Watcom tools

The Watcom readme.txt states:

Some Open Watcom tools currently do not function properly if installed in a directory with spaces in the name e.g. "C:\Program Files\WATCOM". Therefore choose a directory name like C:\WATCOM, D:\WATCOM etc. to install the tools in.

A similar statement appears at some point of the installation of Maple.

I have Watcom installed at the default directory "c:\watcom-1.3". And there are two subdirectories "maple11" and "maple12" with "include" and "lib" subdirectories each. Is this all the stuff that the compiler needs?

I prefer installing Maple (and other applications) in a directory without spaces, just to avoid problems (eg when I access the Win partition from Linux, without precautions a command may take a path name with spaces as multiple parameters, etc).

gkokovidis's picture

Visual C++ 9.0 Express Edition

One way around this is to use Microsofts Visual C++ Express Edition, which is a free download.  I start by creating a Maple file in a temp directory, say C:\temp\Maple

Then I navigate to that directory from the command line prompt of the VC++ compiler, and use command line switches to build my program.  There are examples in Maple that show how to do this.  So far I have not had any problems with it.

As Axel mentions above, I do not use spaces in any of my directory names.  I never accept the default paths given.  On all of my machines, the first thing I do is create an installation directory off of the root drive, and I install all of my programs into that directory, eliminating spaces in the file names.

 

Regards,
Georgios Kokovidis
Dräger Medical


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
}