- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Help - cant compile c program with function
Operating System - HP-UX
1752866
Members
3604
Online
108791
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2010 06:34 AM
11-09-2010 06:34 AM
Re: Help - cant compile c program with function
> [...] you shouldn't code that way.
No argument here. I claim that
IMPLICIT NONE
was the best thing that ever happened to
FORTRAN. The amazing thing is that someone
thought that "implicit int" was a good idea
for C.
No argument here. I claim that
IMPLICIT NONE
was the best thing that ever happened to
FORTRAN. The amazing thing is that someone
thought that "implicit int" was a good idea
for C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2010 07:17 AM
11-09-2010 07:17 AM
Re: Help - cant compile c program with function
You're right Steve.
I can remember wading through fortran just absolutely loaded with implicits from all over the place. Nasty. Really nasty when the code wasn't yours, and was written over 25 years ago, and no-one was familiar with it. All I could do was make subroutines
The worst I ever saw was in a C program that I became the chief owner of, it was a total of 250K lines of code, and in the middle of one of the longest pieces, I found the following indented over about 200 spaces to the right.
m++;
I wrote an awk script to give me a look at program flow and variable declarations. I never found it where "m" was declared, and I never found it became instantiated. The debugger was crud (it was an off brand C compiler, I forget the name) so putting a "watch" on m was impossible to see if I could watch it come to life. Ugh.
So, I commented the line out and recompiled. And nothing worked.
:-)
Dave, no points for this please, it was just an old bad memory I wanted to share for some reason.
I can remember wading through fortran just absolutely loaded with implicits from all over the place. Nasty. Really nasty when the code wasn't yours, and was written over 25 years ago, and no-one was familiar with it. All I could do was make subroutines
The worst I ever saw was in a C program that I became the chief owner of, it was a total of 250K lines of code, and in the middle of one of the longest pieces, I found the following indented over about 200 spaces to the right.
m++;
I wrote an awk script to give me a look at program flow and variable declarations. I never found it where "m" was declared, and I never found it became instantiated. The debugger was crud (it was an off brand C compiler, I forget the name) so putting a "watch" on m was impossible to see if I could watch it come to life. Ugh.
So, I commented the line out and recompiled. And nothing worked.
:-)
Dave, no points for this please, it was just an old bad memory I wanted to share for some reason.
We are the people our parents warned us about --Jimmy Buffett
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP