Steve,

An update: the situation is weirder than I thought. :-)

I found and fixed (in Unicon) one spot where using quotes to protect spaces
in pathnames wasn't working, which was the Unicon stat() function that
checks for the existence of a file. There may be more such places. And I
found one spot where the code was adding a / when Windows may require a \.
OK, fair enough.

Then I tried building exe's directly in the install under \Program Files\
that I was testing. And I got the same message you reported below. Windows
seems to allow ui to write text files, but not executables, to a directory
under \Program Files\, or maybe under any directory that was created by a
software installer tool. This may be new to Win7 or may have been introduced
earlier.  Another observation which is much, much weirder, is that on my
machine at least, the text files that I wrote in \Program Files\Unicon\bin
show up under the "file open" dialog which says it is at \Program
Files\Unicon\bin; I can save, close "ui", rerun "ui", open them and the
contents are there... but the same source file does not appear under the
explorer or on the command prompt "dir" listing.  So it is like there are
two different "C:\Program Files\Unicon\bin", one that shows to the program
installed there, and one that the rest of the world sees. I presume this is
a valuable security upgrade.

Writing to a separate directory c:\foo, my saved .icn and resulting .exe
seem normal and OK.

Summary: there will be new Windows Unicon binaries "soon", in the meantime
we have workarounds like installing in c:\unicon, and you may find it
necessary even after new binaries get built to write your programs or build
IPL programs elsewhere besides the Unicon installation directory.  Neat,
huh.

Cheers,
Clint

On Tue, Feb 1, 2011 at 6:23 PM, Steve Graham
<solitary.wandere...@gmail.com>wrote:

> Clint,
>
>    What am I doing wrong here?
>
> C:\Program Files (x86)\Unicon\ipl\progs>icont farb.icn
> Translating:
> farb.icn:
>   main
> No errors
> Linking:
> icont: cannot create farb.exe
>
> C:\Program Files (x86)\Unicon\ipl\progs>
>
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to