473,320 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

new look for google: sharp

My usual server took a dump, and I'm posting through the goople
portal. It's new and slick. Maybe this will improve the quality of
google posters.

message body follows:
"Craig Dedo" <cd***@wi.rr.comwrote in message
news:47***********************@roadrunner.com...
<ro************@sun.comwrote in message
news:11**********************@k79g2000hse.googlegr oups.com...
>On Oct 3, 5:41 pm, mich...@athenavisual.com wrote:
>>I have a module

MODULE mymodule
***
***
Contains

Function myFunction() result(x)
***
***
Call aSubroutine(****)
End Function

****
****
END MODULE

where aSubroutine is a user supplied subroutine.

my problem is that sometimes the subroutine referenced in the function
above may not be present, in which case the linker complains; other
than writing a dummy subroutine in this case what are my options? what
does the standard say?

Robert Corbett gave a fairly complete answer. See my remarks below for
more detail.
>The following is based on the Fortran 95 standard.
By a chain of logical too long to be worth reproducing
here, the subroutine-name in the CALL statement is
established to be a reference to an external procedure
by item (3) of Section 14.1.2.4.3

(3) If (1) and (2) do not apply, the reference
is to an external procedure with that name.

Section 12.1.2.2 states

An external procedure is a procedure that is defined
by an external subprogram or by a means other than
Fortran.

Based on that, the standard requires the external
subprogram to be part of the program. Therefore,
a Fortran processor can require that there be an
external subprogram with the given name, even if
the CALL statement that references it is never
executed. On the other hand, no constraints would
be violated if such a subroutine is not supplied,
and so a Fortran processor is not required to note
the absence of the subroutine.

Bob Corbett

The standard does not cover the operations of the linker. This is
explicitly excluded by section 1.4 of both the Fortran 95 and Fortran 2003
standards.

Your only options are either:
(1) ignore the warning or error messages from the linker, or
(2) write a dummy subroutine that does nothing.
Of the two options, I very much prefer option (2).
What does the standard say about linking in general? I think most of
us are
looking backwards at a good chunk of the steep learning-curve that is
standard linking, yet none of us knows it all; it's a problem that
penetrates deeply into the nature of finite-state automata. It's so
complicated in C that it requires someone like Jabba the Hut to
explain.
There's a lot of nuance in #defining and #undefining, and I do not
dispute
Keith Thompson's encyclopedic command of the issue. If I did dispute,
he'd
hand me my ass in any technical discussion.

That said, the purple dinosaur will not tolerate talk of how to link
to c++,
windows, or anything remotely more useful than linux, C's ugly red-
headed
stepchild. You can claim that I'm confused about system-specific
stuff and
portability, but I would remind that ISO C, for all its portability,
goes
*nowhere.*

Then you have fortran and perl, which define themselves off of c. I
think
that the reason that Richard Maine--c.l.f.'s answer to Keith--allows
talk of
more varieties in linking traces itself directly to the standard, but
I
don't know. I do know that c-fortran linking must be a calculus else
interop is a pipe dream. Anyways....
--
wade ward
"Your boyfriend is not my boyfriend, doll."

Oct 4 '07 #1
5 1351
In article <11**********************@57g2000hsv.googlegroups. com>,
Wade Ward <za*****@gmail.comwrote:
>My usual server took a dump, and I'm posting through the goople
portal. It's new and slick. Maybe this will improve the quality of
google posters.
Well, you're a google poster, and you're excessively cross-posting
and quoting too much, so I'd say that you have decreased the quality
of Google posters.

Followups set to c.l.f only.

-- greg
Oct 4 '07 #2

"Wade Ward" <za*****@gmail.comwrote in message
news:11**********************@57g2000hsv.googlegro ups.com...
My usual server took a dump, and I'm posting through the goople
portal. It's new and slick. Maybe this will improve the quality of
google posters.
Not with you using it
Oct 4 '07 #3
In article <11**********************@57g2000hsv.googlegroups. com>,
Wade Ward <za*****@gmail.comwrote:
>My usual server took a dump, and I'm posting through the goople
portal. It's new and slick. Maybe this will improve the quality of
google posters.
Well, you're a google poster, and you're excessively cross-posting
and quoting too much, so I'd say that you have decreased the quality
of Google posters.

Followups set to c.l.f only.

-- greg
Oct 4 '07 #4
you forgot the pelonkeriod.

--

--
wade ward
"Your boyfriend is not my boyfriend, doll."

"John B. Coarsey, PE @yahoo.com>" <jcoarsey<nospamwrote in message
news:5m************@mid.individual.net...
>
"Wade Ward" <za*****@gmail.comwrote in message
news:11**********************@57g2000hsv.googlegro ups.com...
>My usual server took a dump, and I'm posting through the goople
portal. It's new and slick. Maybe this will improve the quality of
google posters.

Not with you using it

Oct 4 '07 #5
"John B. Coarsey, PE
"Wade Ward" <za*****@gmail.comwrote in message
>My usual server took a dump, and I'm posting through the goople
portal. It's new and slick. Maybe this will improve the quality
of google posters.

Not with you using it
He has long been plonked here as a trolling top-poster.

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>

--
Posted via a free Usenet account from http://www.teranews.com

Oct 4 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Doc | last post by:
I've been putting together a website using Webeasy. It works really well, however I'm encountering an issue regarding importing images. I wanted a particular line to be a size that's between...
0
by: Vi | last post by:
Some of you might be interested in this open source AutoUpdater for ..NET "Sharp AutoUpdater provides an auto-update feature for .NET applications. Using XML configuration files, Sharp...
2
by: Ben | last post by:
Hi all I am new to C Sharp. Any suggestion for some good C Sharp sites? Thanks for sharing. Ben
0
by: Eugene | last post by:
9rays.net Report Sharp-Shooter 1.3 has been published! Report Sharp-Shooter is the most flexible .NET report engine available on the market. It's a suite of 100% managed .NET components that...
4
by: Hai Nguyen | last post by:
I'm learning C sharp and do not like vb much. I'm creatiing a wepage using panel to test myself. I tried to use these code below, which is written in VB, and to transform them to c sharp but I got...
2
by: HishHish | last post by:
I have a Java code that I want to convert it to C-sharp in order to put it in my ASP.NET web application. I used the JLCA (Java Language Conversion Assistant) for conversion, but it gave me many...
5
by: Alberto | last post by:
What sharp (from c sharp) stand for or where does it comes from? thank you
20
by: windandwaves | last post by:
Hi Folk I am a PHP programmer, but I like to learn c-sharp as it seems to be in hot demand around here. My questions are: - how does c-sharp relate to PHP - do you like c-sharp and its...
6
by: Gumbatman | last post by:
Is there a way to use the Google Maps API in C-Sharp? I've found very little when seaching the web. I don't know JavaScript very well and I thought doing it in C-Sharp would be easier. Thank...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.