User forums > Help

C::B & Uniwin

<< < (4/6) > >>

Rigel:
Here is some kind tutorial to make it work on Windows 5.0 and later:

You will need PuTTY package. You can get it here.

Compiler batch files

--- Code: ---@echo off
set SELF=%~n0
set LOGIN=%1
shift
set REMOTE=%1
shift
set SRCDIR=%1
shift

:next
if "%1" == "" goto end
        set PARAMS=%PARAMS% %1
        shift
        goto next
:end

set PARAMS=%PARAMS:\=/%

c:\bin\putty\plink.exe -C -batch -l %LOGIN% %REMOTE% cd %SRCDIR%; %SELF% %PARAMS%

--- End code ---

At C::B you need to make copy of "GNU GCC Compiler" and name it "Remote GNU GCC Compiler".
Go to Settings>Compiler and Debugger>Remote GNU GCC Compiler>Other>Advanced and add

--- Code: ---$(login) $(remote) $(srcdir)

--- End code ---
to each profile after first variable.
At C::B in Build options you need to set custom variables login, remote, srcdir for targets.

MortenMacFly:

--- Quote from: Rigel on November 22, 2006, 07:35:39 am ---Here is some kind tutorial to make it work on Windows 5.0 and later:

--- End quote ---
Very nice! Thanks! :D ...and luckily it worked. ;-)
I'll now try to do the same and then place an article into the WiKi.
With regards, Morten.

Edit: There it goes: What version of Uniwin are you using? It seems there are two - the (outdated?!) sourceforge.net and a commercial one...?!

Rigel:
I was using sf.net's version of uniwin.

mandrav:
I have updated C::B to work with compilers that expect forward slashes as path separators so it is now much easier to setup Uniwin with C::B.

Full documentation can be found here. Enjoy :).

Rigel:
Thanks alot =)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version