public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Dingjun Chen <Dingjun.Chen@geotechairborne.com>
To: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Error from memcpy in cstring
Date: Thu, 9 Nov 2023 11:57:40 +0000	[thread overview]
Message-ID: <YT3P288MB00772CC8ECF60DE357FDD88897AFA@YT3P288MB0077.CANP288.PROD.OUTLOOK.COM> (raw)

[-- Attachment #1: Type: text/plain, Size: 1467 bytes --]

Hi, guys,

Please see below and how to fix this error?


PS C:\Users\Dingjun.Chen> g++ --version
g++.exe (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.


I did include the following head files in _d_dngl.cc

include/c++/13.2.0/cstring


/home/Dingjun.Chen/DAQ_XYZCross2_cmake_v5/src/_d_dngl.cc:284:9: error: 'memcpy' was not declared in this scope
  284 |         memcpy(aRandom1, aDeCrypt1, 8);
      |         ^~~~~~
/home/Dingjun.Chen/DAQ_XYZCross2_cmake_v5/src/_d_dngl.cc:284:9: note: 'memcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?



I look forward to your help and hearing from you!


Thanks & regards,

Dingjun

Dingjun Chen  | Software Developer

[Geotech Airborne Geophysical Surveys]

Geotech Ltd. dba Geotech Airborne | 270 INDUSTRIAL PKY S | AURORA ON CA | L4G 3T9
T: +1 905 841 5004 | Dingjun.Chen@geotechairborne.com<mailto:Dingjun.Chen@geotechairborne.com> | www.geotechairborne.com<www.geotech.ca>

P Please consider the environment before printing this email

This message may contain PRIVILEGED AND PROPRIETARY INFORMATION intended solely for the use of the addressee (s) named above. Any disclosure, distribution, copying, or use of the information by others is strictly prohibited. If you have received this message in error, please advise the sender by immediate reply and delete the original message.

             reply	other threads:[~2023-11-09 11:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-09 11:57 Dingjun Chen [this message]
2023-11-09 12:05 ` FW: " Dingjun Chen
2023-11-09 12:24   ` Xi Ruoyao
2023-11-09 12:26     ` Xi Ruoyao
2023-11-09 13:00       ` Dingjun Chen
2023-11-09 13:07         ` LIU Hao
2023-11-09 13:14           ` Dingjun Chen
2023-11-09 13:18             ` Xi Ruoyao
2023-11-09 13:41               ` Dingjun Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YT3P288MB00772CC8ECF60DE357FDD88897AFA@YT3P288MB0077.CANP288.PROD.OUTLOOK.COM \
    --to=dingjun.chen@geotechairborne.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).