-
August 25th, 2013, 08:15 AM
#1
[RESOLVED] about GCC compiler
these topic isn't about code, but the basics how use GCC compiler.
if i need change the icon, in EXE, we must create a resource file, right?
after that how can i add it to exe?
the g++.exe compiles C++ code(main()), but what exe compiles win32 program code(wmain())?
Moderator: sorry but i can't find the right sub-forum
-
August 25th, 2013, 11:26 AM
#2
Re: about GCC compiler
The resource compiler from MinGW is call WindRes.exe. It can compile resource scripts into .o object files, which can then be linked to your application.
gg
-
August 25th, 2013, 01:24 PM
#3
Re: about GCC compiler
Originally Posted by Codeplug
The resource compiler from MinGW is call WindRes.exe. It can compile resource scripts into .o object files, which can then be linked to your application.
gg
so the linker can do: resource.o + dll's + sourcefiles.o = exe right?
-
August 30th, 2013, 11:15 AM
#4
Re: about GCC compiler
- 1st the windres.exe don't accept empty spaces, even inside of quotes.
- then we create the resource object:
windres.exe -i resource.res -o resource.o
(remember i - input and o - output)
- compile the source file to object
(for multiple files, repeat the same process)
(gcc.exe compile C source code)
g++.exe -c source.cpp -o source.o
- now lets join all files to exe:
g++.exe source.o source2.o source3.o resource.o -o execurable.exe -static
(if you get errors, see the folder name, don't use empty spaces. and even if you continue with errors, try change the files order. but i use the way)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|