1. Euphoria++?

I tried compiling to program translated to C with ECW
for LCCWin using VC++, and to my amasement, it works!
However, there is only one error that prevents the
whole from compiling.

"LINK : warning LNK4049: locally defined symbol
"__iob" imported
ecwl.lib(runtime.obj) : error LNK2001: unresolved
external symbol _strcpy@8
ecwl.lib(w.obj) : error LNK2001: unresolved external
symbol _strcpy@8
Debug/testy.exe : fatal error LNK1120: 1 unresolved
externals
Error executing link.exe."
This means all Rob has to do to support the fastest C
compiler out there for any platform (VC++), is to fix
this one unresolved external symbol.

I tell ya...
Once you saw a program compiled with VC++6.0 with full
optimisations flying at the speed of light, you will
never go back.

Fix this will ya?
LCC uses the same object file format as VC++, and the
code produced by ECW compiles perfectly (just a few
warnings that don't mean shit).



Mike The Spike

__________________________________________________
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

____________________________________________________________
T O P I C A  -- Learn More. Surf Less. 
Newsletters, Tips and Discussions on Topics You Choose.
http://www.topica.com/partner/tag01

new topic     » topic index » view message » categorize

2. Re: Euphoria++?

> I tried compiling to program translated to C with ECW
> for LCCWin using VC++, and to my amasement, it works!
> However, there is only one error that prevents the
> whole from compiling.

You know what, Mike and Rob and anyone else listening? Can I 
request that the translator simply spit out freaking ANSI C code 
instead of compiler-specific code? I'm really getting tired of having 
to use a certain compiler to compile it with... gah!

--"LEVIATHAN"

new topic     » goto parent     » topic index » view message » categorize

3. Re: Euphoria++?

LEVIATHAN writes:
> Can I request that the translator simply spit out freaking 
> ANSI C code instead of compiler-specific code? 

There's a popular misconception floating around this list
that you can write any program in pure ANSI C, and
you'll be able to compile it using any compiler on any
platform and your program will run without change
and do anything you want it to do. Sort of like the
Java concept.

Show me in your ANSI C manual where it defines
how to put  a pixel on the screen, how to perform
a DOS interrupt, how to set the color of a piece of text,
etc. etc. etc.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

4. Re: Euphoria++?

guilty

Swayze
mswayze at truswood.com
kswayze at bellsouth.net

----- Original Message ----- 
From: "Robert Craig" <rds at RapidEuphoria.com>
To: <EUforum at topica.com>
Sent: Thursday, February 01, 2001 11:29 AM
Subject: Re: Euphoria++?


> LEVIATHAN writes:
> > Can I request that the translator simply spit out freaking 
> > ANSI C code instead of compiler-specific code? 
> 
> There's a popular misconception floating around this list
> that you can write any program in pure ANSI C, and
> you'll be able to compile it using any compiler on any
> platform and your program will run without change
> and do anything you want it to do. Sort of like the
> Java concept.
> 
> Show me in your ANSI C manual where it defines
> how to put  a pixel on the screen, how to perform
> a DOS interrupt, how to set the color of a piece of text,
> etc. etc. etc.
> 
> Regards,
>    Rob Craig
>    Rapid Deployment Software
>    http://www.RapidEuphoria.com
> 
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: Euphoria++?

LEVIATHAN, most excellent duder writes correctly:

> > Can I request that the translator simply spit out
> freaking 
> > ANSI C code instead of compiler-specific code? 


Robert Craig, most excellent coder and hard-head
writes falsely:

> There's a popular misconception floating around this
> list
> that you can write any program in pure ANSI C, and
> you'll be able to compile it using any compiler on
> any
> platform and your program will run without change
> and do anything you want it to do. Sort of like the
> Java concept.

Misconception?
And you have a master's degree in CS?

> Show me in your ANSI C manual where it defines
> how to put  a pixel on the screen, how to perform
> a DOS interrupt, how to set the color of a piece of
> text,
> etc. etc. etc.

It doesn't say that in an ANSI C manual, however it
does say that you must place platform specific code in
an #ifdef capsule.

Is it so hard to understand that if you do this;
#ifdef WIN32
     puts("YEAH!! You compiled with a Win32
compiler!");
#else
#ifdef DOS32
     puts("BOOH!! You compiled with a DOS compiler!");
#endif
#else
    puts("Wha? You compiled a fplatform other that DOS
and Windows! So I'm using ANSI code only! Yipee");
#endif

You code will compile on any platform?
Sure, if the compiler used was not for DOS, Windows or
Linux, you can place some ANSI C printf's that say
"Sorry! No graphics for this unknown platform! write
your own code!".
But atleast you support EVERY ANSI C compiler for Dos,
WIndows and Linux, and not just a few of them (Take
Vector C, extremely fast new compiler, it's extremely
fast with floats and memory handling, I can never use
it with Euphoria. Or VC++? Or Symantec C? Or MingW?
Cygnus? Or a C interpreter? Etc...)

Take a good look at how Pete's Portable Euphoria does
it:

#ifdef ALLEGRO
  #include <allegro.h>
#endif

His code compiles with LCC Win32! While it was written
for DJGPP!!!!
It's ANSI C code and does everything Euphoria does
(except for a few functions).
Compile his code with DJGPP and you aotumatically can
use Allegro graphics!
Compile with LCC and you can't!
Simple as that!
But atleast it compiles!!!
And you can add your own graphics library for the
platform you want.

If it says:
#ifndef WIN32
#ifndef DOS32
/* Not Dos and not Windows */
#include <drawing.h> /* Gameboy */
#include <cgb.h>

int pixel(int, int)
{
    LCD_OFF;
    /* Write the pixel on the gameboy */
    LCD_ON;
}

#endif
#endif



Easy huh?


Just do it, it'll make us all feel better.
Include allegro for DOS if DJGPP has being recognised,
otherwise use your own SVGA routines.

Euphoria don't allow graphics in Win32 anyways, so
what the big deal?


Mike The Spike
> Regards,
>    Rob Craig
>    Rapid Deployment Software
>    http://www.RapidEuphoria.com
> 
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu