[Mingw-users] decipher version information

Back to archive index
Keith Marshall keith****@users*****
Tue Jun 25 05:02:09 JST 2019


On 24/06/19 19:48, Eli Zaretskii wrote:
>> From: sunwukong <sunwu****@hughe*****>
>> Date: Mon, 24 Jun 2019 11:39:51 -0700
>>
>> Can anyone help with deciphering my version information?  Some of
>> this makes me wonder if this is the source of my non compile
> 
> You have GCC 8.2.0-3, the latest MinGW release.  I see nothing wrong
> with your versions.  What led you to believe the versions are somehow
> the source of a problem?

How can we possibly be expected to deduce what might be the source of
the OP's problem, when we aren't shown:

  - the exact command used to compile
  - any error messages produced by the compiler?

All we've be shown so far, is a chunk of (incomplete) source code, and
we've been asked if we might try to compile it; since it is incomplete,
we can't even begin to do so, but I would question this:

>>> #include <C:\mingw\bin\Gnomonic.hpp>
>>> #include <C:\mingw\bin\Geodesic.hpp>

That's just wrong!  The angle brackets tell GCC to search the system
include paths for the headers, but they aren't there; they are in the
absolute path C:\mingw\bin, but since that path doesn't begin with a
"/", GCC may not even recognize it as an absolute path, so will affix
system path prefixes, until it exhausts all possibilities, without
finding them.

What I suspect is intended, is that these headers are in the same
directory as the program which includes them, so correct syntax would be:

   #include "gnomonic.hpp"
   #include "geodesic.hpp"

and for $DEITY's sake:

  - stop using C:\MinGW\bin as a working directory;
  - get out of the habit of using mixed case file names for
    program code; (it may not matter on Windows, but it is
    sure to bite, if cross-compiling on a case-sensitive
    platform);
  - if your header references _must_ include directory name
    separators, get into the habit of using the "/", as
    $DEITY intended, in preference to the "\" favoured by
    the demons of Redmond.

-- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <https://lists.osdn.me/mailman/archives/mingw-users/attachments/20190624/2711d72b/attachment.sig>


More information about the MinGW-Users mailing list
Back to archive index