OS/2, eCS & ArcaOS - Technical > Programming
Compiling a PM sample with GCC
Martin Iturbide:
Hi. I don't have as.exe, on which rpm package it is located?
"yum whatprovides" is not working for me right now, the server is giving me some errors.
cmd.exe gave me the same error.
Regards
Martin Iturbide:
Hi
It worked in my other environment. It build the exe and I can see the animation on the icon box.
I just want to know which package contains "as.exe" just to try it out on the other VM, and document it.
--- Quote ---
Operating System/2 Program Maintenance Utility
Version 4.00.001 Oct 4 2001
Copyright (C) IBM Corporation 1988-2001
Copyright (C) Microsoft Corp. 1988-1991
All rights reserved.
gcc -Zomf -c -O2 walker.c -o walker.obj
rc -r walker.rc
Operating System/2 Resource Compiler
Version 4.00.011 Oct 10 2000
(C) Copyright IBM Corporation 1988-2000
(C) Copyright Microsoft Corp. 1985-2000
All rights reserved.
Creating binary resource file walker.RES
RC: RCPP -E -D RC_INVOKED -W4 -f walker.rc -ef C:\OS2\RCPP.ERR -I C:\usr\include\os2tk45 -I C:\usr\include\os2tk45\inc -I C:\usr\include\os2tk45\gl -I C:\usr\include\os2tk45
walker.rc
gcc -Zomf walker.obj walker.def -o walker.exe
Warning! W1058: file ldH89pwk.: line(20): protmode option not valid for an OS/2 EMX executable
rc walker.res
Operating System/2 Resource Compiler
Version 4.00.011 Oct 10 2000
(C) Copyright IBM Corporation 1988-2000
(C) Copyright Microsoft Corp. 1985-2000
All rights reserved.
Reading binary resource file walker.res
Writing resources to OS/2 v2.0 Linear .EXE file
Writing 1 DEMAND resource object(s)
Writing: 5552 bytes in 2 page(s)
1.1 (1388 bytes)
2.1 (1388 bytes)
3.1 (1388 bytes)
4.1 (1388 bytes)
Writing Extended Attributes: Default Icon
Writing Extended Attributes: Checksum
--- End quote ---
Dave Yeo:
Binutils I guess if GCC didn't include it. Installing GCC should really pull in the binutils and libc-devel
Martin Iturbide:
Hi
I had updated the readme files and comments on the files, and put a very liberal license since it is sample source code. I will upload this version to hobbes if there is no more comments .
Regards.
Dave Yeo:
Drop the C_INCLUDE_PATH stuff, it is not needed and will confuse people. While after dropping the C_INCLUDE_PATH line in the compile.cmd, it is not really needed as it should just compile. Perhaps mention the 2&1 tee make.log in the readme under trouble shooting tips or such.
Perhaps change the first line in the makefile to read something like # nmake makefile for those who don't read the readme and start out using gmake.
Might as well remove the protmode line in the def file too.
Thanks
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version