Using Pelles C with IUP toolkit

Started by Jean-Pierre Leroy, June 24, 2014, 10:52:44 AM

Previous topic - Next topic

jj2007

#15
Quote from: jcfuller on June 27, 2014, 09:09:00 PM
This is a demo I created with my bc9Basic -> c/c++ translator and compiled with VS2013 Express.

James,
IUP_01.exe "is not a valid Win32 application" on WinXP... sorry.

@WRP: No complete programs there, just screenshots. What I meant was really a hello world proggie, see attached samples.

EDIT: After some searching, I found something here - a bit bloated at 78k for what it does, in particular since you need >2MB of dlls to make it work. The look is OK, though. It crashes WJR's PEview for some reason.

jcfuller

Quote from: jj2007 on June 28, 2014, 02:17:51 AM
Quote from: jcfuller on June 27, 2014, 09:09:00 PM
This is a demo I created with my bc9Basic -> c/c++ translator and compiled with VS2013 Express.
James,
IUP_01.exe "is not a valid Win32 application" on WinXP... sorry.

That's right.
Microsoft dropped default XP support with the release of Visual Studio 2012 many years ago.
I do have a setup for compiling with VS2013 for XP but I do not have an XP machine anymore so I can't test it.
See if this works.

James


jj2007

Quote from: jcfuller on June 28, 2014, 01:11:11 PM
Microsoft dropped default XP support with the release of Visual Studio 2012 many years ago.
;-)

QuoteI do have a setup for compiling with VS2013 for XP but I do not have an XP machine anymore so I can't test it.
See if this works.
Same problem.

jcfuller

Ok one more time :)
BCX has long been a supporter of PellesC. Although my focus with the bc9Basic fork is primarily c++ it creates "c" source just fine.
Attached is bc9Basic source, c source,  exe, and my batch file for compiling with PellesC.
This one was compiled with PellesC 8 RC4 and using a dll that IUP no longer supplies ( I could not find it) That I believe has only MSVCRT dependencies.

James


jj2007

Thanks, James - it works on XP SP3 ;)

frankie

#20
Quote from: Bitbeisser on June 27, 2014, 07:14:58 PM
Quote from: frankie on June 27, 2014, 05:38:18 PM
I'm trying to natively compile IUP on PellesC, and I have compiled parts of it, but unfortunately many modules are in C++ ...
I have downloaded but not played with the code myself, but according to the site, it should be plain C... ?!?!?!

Ralf

The API are in plain C by design ...
But the library itself has a lot of C++  :-\, The im library is in C++  >:(
There should be also wrappers to use the API's in C++  ;D ;D ;D ;D ;D ridicolus...?!?!?!?

Anyway there should be no problem in using precompiled DLL's, but you can't use directly the precompiled libs, unless compile with no default libraries and link against msvcrt including the ms crt static library specified as first library in the linker list.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

sven90

Hello.
It is there a Linux tutorial how to configure pells in ubuntu? I just find your website in google and trying to get some tutorials but its difficult to find

frankie

Quote from: sven90 on August 04, 2014, 02:38:27 PM
Hello.
It is there a Linux tutorial how to configure pells in ubuntu? I just find your website in google and trying to get some tutorials but its difficult to find
PellesC is not available for linux, but can run under wine.
PellesC is just a 'C' compiler, not 'C++'.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

coder_direct

Is there anybody that can provide a proper instruction how to instal iup on Pelles C v8

Thanks
John