arturoc / oscpack

Automatically exported from code.google.com/p/oscpack
Other
7 stars 5 forks source link

Compiler version #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Just compile with the standard makefile
2.
3.

What is the expected output? What do you see instead?
No error. I get an error when using g++-4.4 or 4.3, had to use 4.1. 

What version of the product are you using? On what operating system?
Product: 1.0.2
OS: Linux craftpc31 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:48:22 UTC 
2010 i686 GNU/Linux

Please provide any additional information below.
Got all sorts of errors such as:
make CXX=g++-4.4
g++-4.4 -Wall -O3 -I./ -DOSC_HOST_LITTLE_ENDIAN   -c -o tests/OscUnitTests.o 
tests/OscUnitTests.cpp
tests/OscUnitTests.cpp: In function ‘void osc::assertEqual_(const T*, const 
T*, const char*, const char*, const char*, int) [with T = char]’:
tests/OscUnitTests.cpp:82: error: ‘strcmp’ was not declared in this scope
tests/OscUnitTests.cpp: In function ‘char* osc::NewMessageBuffer(const char*, 
long unsigned int)’:
tests/OscUnitTests.cpp:102: error: ‘memcpy’ was not declared in this scope
tests/OscUnitTests.cpp: In function ‘void osc::test1()’:
tests/OscUnitTests.cpp:116: error: ‘strcmp’ was not declared in this scope
tests/OscUnitTests.cpp: In function ‘void osc::test3()’:
tests/OscUnitTests.cpp:313: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:322: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:322: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:323: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:323: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:324: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:324: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:326: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:326: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:327: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:327: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:329: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:329: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:331: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:331: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:333: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:333: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:335: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:335: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:337: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:337: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:339: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:339: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:341: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:341: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:343: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:343: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:348: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:361: error: ‘memcmp’ was not declared in this scope
tests/OscUnitTests.cpp:365: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:365: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:367: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:367: error: ‘memset’ was not declared in this scope
tests/OscUnitTests.cpp:373: error: ‘memset’ was not declared in this scope

Original issue reported on code.google.com by sebastie...@gmail.com on 1 Nov 2010 at 5:09

GoogleCodeExporter commented 9 years ago
#include <cstring> for the str* errors, don't know where memset is supposed to 
be declared

Original comment by lacrymol...@gmail.com on 20 Dec 2010 at 12:49

GoogleCodeExporter commented 9 years ago
I was getting the same errors as sebastien.  The fix for OscUnitTests.cpp was 
to #include <cstring>.  There were further errors in other files, but usually 
they were fixed by either including <cstring> or <cstdlib>.

I compiled with Cygwin.

Original comment by ephis...@gmail.com on 11 Jan 2011 at 10:30

GoogleCodeExporter commented 9 years ago
ephis- 

Trying to compile myself, but know very little about the language. Can you 
provide a little more direction in adding <cstring> or <cstlib> ? 

I added it to OscUnitTests.cpp, but now am getting errors in 
OscReceivedElements.cpp, and adding those lines didn't help any. 

Thanks

Original comment by roguedge...@gmail.com on 16 Feb 2011 at 3:59

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This should be resolved in SVN head. Please create a new ticket if you 
encounter problems with the SVN version.

Original comment by ross.bencina on 4 Mar 2013 at 9:35