Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7958023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:21:22+00:00 2026-06-04T04:21:22+00:00

#include <string.h> sdi12CRC::sdi12CRC() { CRC = 0; responseToDCommandWithoutCRC = new char[MAX_D_COMMAND_RESPONSE_SIZE]; responseToDCommandWithCRC = new

  • 0
#include <string.h>

sdi12CRC::sdi12CRC()
  {
    CRC = 0;
    responseToDCommandWithoutCRC = new char[MAX_D_COMMAND_RESPONSE_SIZE];
    responseToDCommandWithCRC = new char[MAX_D_COMMAND_RESPONSE_SIZE];
    asciiCRC = new char[ASCII_CRC_SIZE];
    strcpy(responseToDCommandWithoutCRC,"");
    strcpy(responseToDCommandWithCRC,"");
    strcpy(asciiCRC,"");
  }

Above is a code fragment from a C++ program that I wrote and tested some time ago with Borland C++ builder. It works. I’m now learning Visual Studio 2010, so I thought I use my past work to help learn about Visual Studio.

I get an a warning and and an error on the above code, yet the above code is legit C++ code. I can’t find any help in the VS documentation to learn what I’m doing wrong and how to fix it. (I’m not saying it’s not in the documentation; just saying I can’t find it).

Warning 1   warning C4627: '#include <stdlib.h>': skipped when looking for precompiled header use

Error   4   error C3861: 'strcpy': identifier not found

What gives here? Isn’t string.h the required header for strcpy? Thus strcpy() should compile. What is it that I don’t understand or know about?

Any help will be most appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T04:21:23+00:00Added an answer on June 4, 2026 at 4:21 am

    The problem is that you configured the project to use precompiled headers, but you are not using them. Just adjust your project settings to not use precompiled headers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Code : #include stdio.h #include string.h int main() { char *p = abc; printf(p
Given the following code: #include stdafx.h #include string.h static char *myStaticArray[] = {HelloOne, Two,
#include <string.h> #include <stdlib.h> #include <stdio.h> int main(void) { unsigned char *stole; unsigned char
#include stdafx.h #include string.h #include windows.h bool SCS_GetAgentInfo(char name[32],char version[32], char description[256], const char
Why in Linq to Entities do I need to specify relationships with Include(string)? Linq
Is there a way to format the output of Select-String to include newlines between
#include<string> ... string in; //How do I store a string from stdin to in?
In a string based overload of Include we specify to include a collection and
I #include <string.h> but when I call strcasestr(src, search); I get the following error
Is it possible to include an alphabetic character in a SimpleDateFormat Pattern String? I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.