Re: strange linking problem



In article <1114645565.383875.105010@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
nicolasbock@xxxxxxxxx wrote:

>... character array...
....
> Character (len=100) :: test = "This is a test"

Michel answered your question. Allow me to just help you avoid a
completely different problem in the future.

What you have is *NOT* a character array. It is a scalar character
string. One can have character arrays in Fortran, but they are not the
same thing. For example

character :: test_array(100)

is an array of characters (of length 1 by default, since the length is
not otherwise specified), and

character(len=42) :: array_of_strings(100)

is an array of character strings, each of which is 42 characters long.
(There are other syntaxes for declaring both of these).

If you refer to character strings as arrays, it is highly likely that
you will eventually make mistakes because of it; the difference does
matter. It is perhaps even more likely that you will get wrong answers
from some future question because someone will answer the question that
you actually ask instead of the one you meant - and the answers might
not be the same.

--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain | experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
.



Relevant Pages

  • Re: Need help with textboxes
    ... character into the input box. ... one of assigning the reference to a variable: ... All forms and their children are stored in an array ... No. Bracket property accessors allow their argument to be any string value. ...
    (comp.lang.javascript)
  • Help in Spanish translation of the description of UDFs
    ... functions of minimum / maximum values among elements of an array column. ... GETALLWORDS- Inserts the words from a string into a global dimensioned ... WORDTRAN- Searches a character string for occurrences of a first word, ... ARRAYSUM- Returns the sum of all or a specified range of numeric (and/or ...
    (microsoft.public.fox.helpwanted)
  • Re: Pointer
    ... require in input a pointer char: ... unsafe public static extern int OpenFile; ... What is it pointing to exactly, is it pointing to a "Unicode character" array or is it pointing to a "Single byte character" array or is it pointing to something else? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Pointer
    ... require in input a pointer char: ... unsafe public static extern int OpenFile; ... What is it pointing to exactly, is it pointing to a "Unicode character" array or is it ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: problem with unhandled exception (acces violation) and undefined array/pointer
    ... If you pass a real array to a ... character dummy the extra arguments won't be there. ... occasional fortran user with limited knowledge, ... with compile and link options, ...
    (comp.lang.fortran)