Hello,
This is my RC content (tablebuilder.rc):
SCRIPT_POSTGRESQL RCDATA ..\..\script\sql\postgresql.sql
But when I try to compile it:
fpcres.exe tablebuilder.rc -o tablebuilder.res -of res
Error: No known file format detected for file 'tablebuilder.rc'
What the format expected by fpcres?
You need windres for that. Fpcres compiles a .res file into an object file.
Il giorno 03/giu/2013 17:12, silvioprog silviop...@gmail.com ha scritto:
Hello,
This is my RC content (tablebuilder.rc):
SCRIPT_POSTGRESQL RCDATA ..\..\script\sql\postgresql.sql
But when I try to compile it:
2013/6/3 Giulio Bernardi ugi...@gmail.com
You need windres for that. Fpcres compiles a .res file into an object file.
Thank you very much! :)
--
Silvio Clécio
My public projects - github.com/silvioprog
___
fpc-pascal maillist -
I am trying to come up with an embedded binary resource system and was
considering placing data in object files when I found this question on
stack overflow:
http://stackoverflow.com/questions/4158900/embedding-resources-in-exe-using-gcc
I see that it's possible to directly turn any file into an
Once upon a time, Tomas Hajny said:
On Mon, June 3, 2013 18:09, Ewald wrote:
Well, you can obviously use tool bin2obj created with/for FPC and
distributed with FPC releases - see fpcsrc/utils/bin2obj.pp.
Seriously? I should really start looking at included tools... I've got
this feeling that it
On Monday 03 June 2013 17:47:46 you wrote:
I am trying to come up with an embedded binary resource system and was
considering placing data in object files when I found this question on
stack overflow:
http://stackoverflow.com/questions/4158900/embedding-resources-in-exe-using
-gcc
I see
On Monday 03 June 2013 17:47:46 you wrote:
I am trying to come up with an embedded binary resource system and was
considering placing data in object files when I found this question on
stack overflow:
http://stackoverflow.com/questions/4158900/embedding-resources-in-exe-using
-gcc
I see
Once upon a time, Anthony Walter said:
I am trying to come up with an embedded binary resource system and was
considering placing data in object files when I found this question on
stack overflow:
http://stackoverflow.com/questions/4158900/embedding-resources-in-exe-using-gcc
I see that
Wow, thanks for all the interesting replies. In the mean time here is what
I came up with:
ld -r -b binary -o binary.o helloworld.txt
#include stdint.h
extern char _binary_helloworld_txt_start[];
extern char _binary_helloworld_txt_end[];
void* helloworld(uintptr_t* i) {
uintptr_t a =
For me this seems (too) complicated to do an easy thing (including some data).
On Monday 03 June 2013 18:51:59 you wrote:
Wow, thanks for all the interesting replies. In the mean time here is what
I came up with:
ld -r -b binary -o binary.o helloworld.txt
#include stdint.h
extern
Once upon a time, Rainer Stratmann said:
For me this seems (too) complicated to do an easy thing (including some data).
That, and I don't think that ld on mac os x can handle `-b` (or --format).
--
Ewald
___
fpc-pascal maillist -
I think I'll use Rainer's example:
{$ir file.dat mydata}
I just hope the final exe won't get bloated if resource are included in
this manner and never used and also that it does slow down compilation
every time unless I add to new resources or change code in the unit
containing the resource.
On Monday 03 June 2013 20:01:45 you wrote:
I think I'll use Rainer's example:
{$ir file.dat mydata}
You can try, but I am not aware that this will work.
It was a suggestion. :-)
I just hope the final exe won't get bloated if resource are included in
this manner and never used and also
Okay I found some interesting results after a bit of testing...
When using bin2obj you get a byte of array typed constant which you can
include in your sources. The compiler will always include the resource
whether it is referenced from code or not. Stripping the app (strip -s -g
appname) does
On 03 Jun 2013, at 22:22, Anthony Walter wrote:
What this means is that all string constants and typed constants are take
up space in your executable whether your use them or not, which is not
ideal IMO. The compiler ought to be able to detect when these constants are
not referenced (much
Nevermind, Jonas you're right. I was missing the -C
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
16 matches
Mail list logo