NO

Author Topic: Version 5.00 Beta 1 available  (Read 17920 times)

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Version 5.00 Beta 1 available
« on: January 27, 2008, 08:48:48 PM »
Pelles C version 5.0, Beta #1, is now available for download:
http://www.smorgasbordet.com/pellesc/download.htm

Pelle
/Pelle

Offline Christian

  • Administrator
  • Member
  • *****
  • Posts: 142
    • http://www.pellesc.de
Re: Version 5.00 Beta 1 available
« Reply #1 on: January 27, 2008, 11:17:04 PM »
Great as usual, Pelle.

I'll test it the next days.

The german mirror is also updated.
www.pellesc.de - German PellesC mirror (now available in german and english)

Claudy

  • Guest
Re: Version 5.00 Beta 1 available
« Reply #2 on: January 28, 2008, 09:00:59 PM »
Hi Pelle,

IDE do not start, get a message "can not load resource DLL"
May be something is missing?

Put Claude    Belgium

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Version 5.00 Beta 1 available
« Reply #3 on: January 28, 2008, 10:22:29 PM »
Hmm... this area is unchanged from the previous version, and the same files included in the setup, with the exception that there is no French translation. Not sure what language setting you use in your Windows version, but either the program finds the old French translation and the strings in the IDE should look corrupted, or the program should default to the (new) English version. I can't explain this right now.

Any difference if you use the new /L (language) option to POIDE, something like this (for English):
Code: [Select]
poide /L 0x0409
/Pelle

Offline Christian

  • Administrator
  • Member
  • *****
  • Posts: 142
    • http://www.pellesc.de
Re: Version 5.00 Beta 1 available
« Reply #4 on: January 28, 2008, 11:07:35 PM »
I don't think it's a 5.00 bug, but if I use the 'increment build no' AddIn I have to say after rebuilding the programm that I want to reload the external changed .rc file.

Is there a possibility to change this?
www.pellesc.de - German PellesC mirror (now available in german and english)

stepw

  • Guest
Re: Version 5.00 Beta 1 available
« Reply #5 on: January 29, 2008, 04:03:29 AM »
Hmm... this area is unchanged from the previous version, and the same files included in the setup, with the exception that there is no French translation. Not sure what language setting you use in your Windows version, but either the program finds the old French translation and the strings in the IDE should look corrupted, or the program should default to the (new) English version. I can't explain this right now.

Any difference if you use the new /L (language) option to POIDE, something like this (for English):
Code: [Select]
poide /L 0x0409

Hi Pelle,

Thank you for great work. Really looking forward for new features in 5.0.
You suggestion doesn't work on my WinXPSP2 either. In fact poide picks up 0x0409 properly from regional settings. OS fails to load the language resource dlls bundled with the installation package (probably due to stripped relocations).

Here's the output from DependencyWalker profiler:
Code: [Select]
LoadLibraryW("p:\dev\pellesc5\bin\Intl\rsrc0009.dll") called from "POIDE.EXE" at address 0x00462EB1.
LDR: LdrRelocateImageWithBias() failed 0xc0000018
LDR: OldBase     : 10000000
LDR: NewBase     : 03B80000
LDR: Diff        : 0x7c90dec20022ed60
LDR: NextOffset  : 00000000
LDR: *NextOffset : 0x0
LDR: SizeOfBlock : 0x3b80000
LoadLibraryW("p:\dev\pellesc5\bin\Intl\rsrc0009.dll") returned NULL. Error: Attempt to access invalid address (487).

Claudy

  • Guest
Re: Version 5.00 Beta 1 available
« Reply #6 on: January 29, 2008, 11:15:30 AM »
Hi Pelle,

Did start this way: poide /L 0x0409 , but get the same message "unable to load resource DLL(RSRCnnnn.DLL)"

Your suggestion doesn't work on my WinXP pro SP2 .

Reloaded the old version version, and this did work again ( but looses all my old initiates :-)   )

Put Claude   Belgium


Frontier

  • Guest
Re: Version 5.00 Beta 1 available
« Reply #7 on: January 29, 2008, 10:23:25 PM »
Hi Pelle,

Thank you for v5.00, I especially like the x64 support (among with ARM).

I am using the system on Windows Server 2003 R2 x64 Enterprise, where I am trying to compile some simple and some not-so-simple C command line programs (some utilities I wrote for my servers), in order to produce pure x64 binaries.

On some projects, they compile fine but POLINK keeps asking for a uuid.lib when creating an x64 single-threaded executable. The 32-bit PellesC lib directory has this file but the 64-bit not.
Sorry for asking - might be a stupid question - but is this file missing or there is something else wrong with my code?

Many thanks in advance.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Version 5.00 Beta 1 available
« Reply #8 on: January 29, 2008, 11:34:20 PM »
@Christian: I will look at it. The reload feature is enhanced in this version, but the add-in is unchanged. Maybe the add-in can be modified, but IIRC the resource script is actually modified so I'm not sure right now...

@stepw: It works on my old XP machine (I don't remember the service pack version right now), so it's a little strange, but having an (almost) empty base relocation section may make a difference. I have added this to all resource dll's and put them in intl.zip (for the Intl subdirectory). Any difference...?
http://www.smorgasbordet.com/pellesc/junk/intl.zip

@Frontier: Yes, I have missed to include uuid.lib for X64 in the distribution. I have attached it in uuidlib64.zip - does it work now?
http://www.smorgasbordet.com/pellesc/junk/uuidlib64.zip
/Pelle

Claudy

  • Guest
Re: Version 5.00 Beta 1 available
« Reply #9 on: January 30, 2008, 02:16:00 PM »
Hi Pelle,

Did replace the rsrc0009.dll and it works perfect now...
Thanks a lot,

Put Claude    Belgium

Frontier

  • Guest
Re: Version 5.00 Beta 1 available
« Reply #10 on: January 30, 2008, 05:30:03 PM »
Hi Pelle,

POLINK no longer asks for uuid.lib (after placing the file you provided in Win64 directory) but now asks for file odbccp32.lib.
May I ask if you are building PellesC agains Windows Vista SDK without support for earlier platforms?
It's kinda odd since I am using also Vista SDK under Windows Server 2003 without problems.

Update: I copied the file odbccp32.lib from the Vista SDK x64 libraries folder into PellesC Win64 folder and my program compiled OK.
I do not know however the consequences of doing this, but I hope that the Vista SDK library is compatible with the format POLINK supports.

Anyway, you need to include these two files in a future install of PellesC for x64; however, you've done an excellent job providing an alternate x64 compiler for Windows.
Thank you :)

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Version 5.00 Beta 1 available
« Reply #11 on: January 30, 2008, 08:01:19 PM »
@Claudy: very good, thanks for the info.

@Frontier: I have a copy of the Vista SDK as reference, but never use it to build anything. I use my own (include) files, and even though some of them contains #pragma comment(lib, ...) for the libraries you are mentioning, I never seem to include those files - directly or indirectly. Example: odbccp32.lib will only be referenced if odbcinst.h is included directly, and the special symbol WIN32_DEFAULT_LIBS is also defined. It is a bug that odbccp32.lib is not included, but as it seems (right now) you have to put some effort into exposing this bug.

Yes, the Vista SDK files should be compatible with Pelles C.
/Pelle

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Version 5.00 Beta 1 available
« Reply #12 on: January 30, 2008, 10:22:49 PM »
@Christian: I have looked at the 'increment build number' sample. Yes, it doesn't work great if you keep the resource script open during a build. Adding code to update the loaded version (when it is in fact loaded) will create a much larger sample - not so good. Closing the affected resource window before the build seems unfriendly. The reload question is supposed to avoid problems overwriting a newer file (on disk) with an older file (in memory), so having an option to turn this feature off is probably dangerous. Since the 'increment build number' add-in is just a sample after all, maybe leave it 'as is' for now...? Do you have any other ideas...?
/Pelle

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: Version 5.00 Beta 1 available
« Reply #13 on: January 31, 2008, 08:50:40 AM »
Hello

I have tried it and it is again very nice and good. I like it.

Things which make me not so happy are:

1.) In Application Data I have not the to let there the "sysdefs.tag"-file.  :( 
     I have movedit in the bin-directory from Pelles C and it works there also.  :)
     So it is ok for me, but i wished to have the choice where to create it.  ;)

2.) I missed the msvcrt.lib :(
best regards
 Alex ;)

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Version 5.00 Beta 1 available
« Reply #14 on: January 31, 2008, 01:05:52 PM »
@AlexN:

1) Not sure I understand your problem with Application Data; seems to be a recommended place by Microsoft. At least there should be no data files under "Program files". Having the user select the location will most likely cause many more problems than it will solve.

2) Including msvcrt.lib would give the illusion that I actually support linking to this file, which I of course don't. Link to a Microsoft runtime if you like, but you are completely on your own - I can't help if it fails...
/Pelle