I have worked a few days in PellesC with my big program. I have to change very much code for it to work. It still does not work, has much to do.
I have been running the program! I received a return drew sever where "eof" did not work. Changed to "_eof" and it worked.
When I work in my program compiled with Pelle-C gets it wrong every time I get date time, the program dies with the error message from Windows:
LPSTR charDateFBS;
//Get the date
charDateFBS=ac_ClockGetLocalTime_1("YY_MM_DD", "-");
I take it the ac_ClockGetLocalTime_1 is a self-written procedure... which is going to need debugging.
Take a look at the Help File -> time.h header... There are several time functions there you may be able to use to advantage.
The most likely problem you're running into is that LCC is not a standards driven compiler where Pelles C is... many of LCC's library functions may be differently named or simply not present on Pelles... This is the big problem with non-standard code, you end up with a mess that does take some time to clear up. BUT, once you're over that hump now, moving to the "next better tool" will be far easier...
ac_ClockGetLocalTime_1 I have written. It is a feature of about 830 functions I wrote to speed up the work. I started developing my function libraries with Symantec C (/ C + +) which is the predecessor to Digital Mars. When I went over to LccWin32 so did all the features of my library without any problems. If I should continue with Pelle's C-I have to write about a lot of code.
I intend to continue to debug all the code in the Pelle-C from time to time to ensure that the code works in most compilers, but I do develop in LccWin32.
Pelle-C is the most slow tool I've tested in recent days. I simply do not have time to sit and wait up to one hour per night on it to compile. If I compile 30 times in one night, it takes a total of 1 minute and 30 seconds in LccWin32. With Pelle-C, it takes 60 minutes. With the others I tested, it takes between 10 minutes and 20 minutes.