COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :

Go Back   Cockos Incorporated Forums > Other Software Discussion > WDL users forum

Reply
 
Thread Tools Display Modes
Old 02-11-2018, 02:34 PM   #1
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default std::strcmp - namespace "std" has no member "strcmp" (SOLVED)

In my current iPlug project (Visual Studio) I get the sqiggly red underline when using std::strcmp() saying: namespace "std" has no member "strcmp".

I have #include <cstring> at the top of this .cpp file though and it compiles without errors.

Why is that / how to fix ?

Last edited by nofish; 02-12-2018 at 07:19 AM.
nofish is offline   Reply With Quote
Old 02-11-2018, 10:16 PM   #2
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

Because strcmp (C library function) is declared in that file. Including it (directly or indirectly through another file that does) is the right solution.

http://en.cppreference.com/w/cpp/string/byte/strcmp
cfillion is offline   Reply With Quote
Old 02-12-2018, 12:47 AM   #3
Tale
Human being with feelings
 
Tale's Avatar
 
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,645
Default

Yeah, there is no std::strcmp... There is std::string::compare() though, if you want to go the STL route.
Tale is offline   Reply With Quote
Old 02-12-2018, 07:18 AM   #4
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

Thanks for the replies.

It's solved meanwhile, it was a VS configuration problem. I did have <cstring> included in my file, but obviously didn't have the C header files installed so VS couldn't find them.

https://stackoverflow.com/a/42778079
nofish is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:55 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.