I’m exploring the use of malloc_g. I’ve made a sample program as simple as I
can:
#include <malloc_g/malloc.h>
int main(int argc, char* argv[])
{
return 0;
}
If I build with:
cc -g -l malloc_g -o mallocg mallocg.c
it builds cleanly.
If I build with:
cc -g -lang-c++ -l malloc_g -o mallocg mallocg.c
I get the following errors:
In file included from /usr/include/malloc_g/malloc-lib.h:8,
from /usr/include/malloc_g/malloc.h:125,
from mallocg.c:1:
/usr/include/sys/types.h:258: size_t' not declared In file included from /usr/include/malloc_g/malloc-lib.h:9, from /usr/include/malloc_g/malloc.h:125, from mallocg.c:1: /usr/include/stdlib.h:129: type specifier omitted for parameter /usr/include/stdlib.h:129: parse error before
)’
/usr/include/stdlib.h:143: size_t' undeclared in namespace
std’
/usr/include/stdlib.h:143: parse error before )' /usr/include/stdlib.h:217: type specifier omitted for parameter /usr/include/stdlib.h:217: parse error before
)’
cc: /usr/lib/gcc-lib/ntox86/2.95.2/cc1plus error 33
The docs recommend using malloc_g with C++. What am I doing wrong?
Thanks,
Marty Doane
No response yet. Anyone using malloc_g with C++? Can anyone confirm or deny
my observations?
Thanks,
Marty
“Marty Doane” <marty.doane@rapistan.com> wrote in message
news:9mg67q$5s6$1@inn.qnx.com…
I’m exploring the use of malloc_g. I’ve made a sample program as simple as
I
can:
#include <malloc_g/malloc.h
int main(int argc, char* argv[])
{
return 0;
}
If I build with:
cc -g -l malloc_g -o mallocg mallocg.c
it builds cleanly.
If I build with:
cc -g -lang-c++ -l malloc_g -o mallocg mallocg.c
I get the following errors:
In file included from /usr/include/malloc_g/malloc-lib.h:8,
from /usr/include/malloc_g/malloc.h:125,
from mallocg.c:1:
/usr/include/sys/types.h:258: size_t' not declared In file included from /usr/include/malloc_g/malloc-lib.h:9, from /usr/include/malloc_g/malloc.h:125, from mallocg.c:1: /usr/include/stdlib.h:129: type specifier omitted for parameter /usr/include/stdlib.h:129: parse error before
)’
/usr/include/stdlib.h:143: size_t' undeclared in namespace
std’
/usr/include/stdlib.h:143: parse error before )' /usr/include/stdlib.h:217: type specifier omitted for parameter /usr/include/stdlib.h:217: parse error before
)’
cc: /usr/lib/gcc-lib/ntox86/2.95.2/cc1plus error 33
The docs recommend using malloc_g with C++. What am I doing wrong?
Thanks,
Marty Doane
What version of Neutrino? I have used it with 6.0 and C++.
“Marty Doane” <marty.doane@rapistan.com> wrote in message
news:9mg67q$5s6$1@inn.qnx.com…
I’m exploring the use of malloc_g. I’ve made a sample program as simple as
I
can:
#include <malloc_g/malloc.h
int main(int argc, char* argv[])
{
return 0;
}
If I build with:
cc -g -l malloc_g -o mallocg mallocg.c
it builds cleanly.
If I build with:
cc -g -lang-c++ -l malloc_g -o mallocg mallocg.c
I get the following errors:
In file included from /usr/include/malloc_g/malloc-lib.h:8,
from /usr/include/malloc_g/malloc.h:125,
from mallocg.c:1:
/usr/include/sys/types.h:258: size_t' not declared In file included from /usr/include/malloc_g/malloc-lib.h:9, from /usr/include/malloc_g/malloc.h:125, from mallocg.c:1: /usr/include/stdlib.h:129: type specifier omitted for parameter /usr/include/stdlib.h:129: parse error before
)’
/usr/include/stdlib.h:143: size_t' undeclared in namespace
std’
/usr/include/stdlib.h:143: parse error before )' /usr/include/stdlib.h:217: type specifier omitted for parameter /usr/include/stdlib.h:217: parse error before
)’
cc: /usr/lib/gcc-lib/ntox86/2.95.2/cc1plus error 33
The docs recommend using malloc_g with C++. What am I doing wrong?
Thanks,
Marty Doane
6.1.
I wonder if the Dinkum libraries introduced a compatability problem.
Anybody from QSSL listening?
“Dwayne Nelson” <nelsond@intgame.com> wrote in message
news:9n3lep$2km$1@inn.qnx.com…
What version of Neutrino? I have used it with 6.0 and C++.
“Marty Doane” <> marty.doane@rapistan.com> > wrote in message
news:9mg67q$5s6$> 1@inn.qnx.com> …
I’m exploring the use of malloc_g. I’ve made a sample program as simple
as
I
can:
#include <malloc_g/malloc.h
int main(int argc, char* argv[])
{
return 0;
}
If I build with:
cc -g -l malloc_g -o mallocg mallocg.c
it builds cleanly.
If I build with:
cc -g -lang-c++ -l malloc_g -o mallocg mallocg.c
I get the following errors:
In file included from /usr/include/malloc_g/malloc-lib.h:8,
from /usr/include/malloc_g/malloc.h:125,
from mallocg.c:1:
/usr/include/sys/types.h:258: size_t' not declared In file included from /usr/include/malloc_g/malloc-lib.h:9, from /usr/include/malloc_g/malloc.h:125, from mallocg.c:1: /usr/include/stdlib.h:129: type specifier omitted for parameter /usr/include/stdlib.h:129: parse error before
)’
/usr/include/stdlib.h:143: size_t' undeclared in namespace
std’
/usr/include/stdlib.h:143: parse error before )' /usr/include/stdlib.h:217: type specifier omitted for parameter /usr/include/stdlib.h:217: parse error before
)’
cc: /usr/lib/gcc-lib/ntox86/2.95.2/cc1plus error 33
The docs recommend using malloc_g with C++. What am I doing wrong?
Thanks,
Marty Doane
\
Hi, and yes. We are listening. The Dinkum libs did indeed
introduce an incompatibility. This was fixed internally, but missed
the last release.
Should be available RSN ™.
Cheers.
GP
Marty Doane <marty.doane@rapistan.com> wrote:
6.1.
I wonder if the Dinkum libraries introduced a compatability problem.
Anybody from QSSL listening?
“Dwayne Nelson” <> nelsond@intgame.com> > wrote in message
news:9n3lep$2km$> 1@inn.qnx.com> …
What version of Neutrino? I have used it with 6.0 and C++.
“Marty Doane” <> marty.doane@rapistan.com> > wrote in message
news:9mg67q$5s6$> 1@inn.qnx.com> …
I’m exploring the use of malloc_g. I’ve made a sample program as simple
as
I
can:
#include <malloc_g/malloc.h
int main(int argc, char* argv[])
{
return 0;
}
If I build with:
cc -g -l malloc_g -o mallocg mallocg.c
it builds cleanly.
If I build with:
cc -g -lang-c++ -l malloc_g -o mallocg mallocg.c
I get the following errors:
In file included from /usr/include/malloc_g/malloc-lib.h:8,
from /usr/include/malloc_g/malloc.h:125,
from mallocg.c:1:
/usr/include/sys/types.h:258: size_t' not declared In file included from /usr/include/malloc_g/malloc-lib.h:9, from /usr/include/malloc_g/malloc.h:125, from mallocg.c:1: /usr/include/stdlib.h:129: type specifier omitted for parameter /usr/include/stdlib.h:129: parse error before
)’
/usr/include/stdlib.h:143: size_t' undeclared in namespace
std’
/usr/include/stdlib.h:143: parse error before )' /usr/include/stdlib.h:217: type specifier omitted for parameter /usr/include/stdlib.h:217: parse error before
)’
cc: /usr/lib/gcc-lib/ntox86/2.95.2/cc1plus error 33
The docs recommend using malloc_g with C++. What am I doing wrong?
Thanks,
Marty Doane
\
Marty Doane <marty.doane@rapistan.com> wrote:
6.1.
I wonder if the Dinkum libraries introduced a compatability problem.
Anybody from QSSL listening?
Try the following:
#ifdef __cplusplus
using namespace std;
extern “C”
{
#include <stdio.h>
}
#endif
#include <malloc_g/malloc.h>
int main (int argc, char* argv[])
{
return 0;
}
Regards,
Marcin
“Dwayne Nelson” <> nelsond@intgame.com> > wrote in message
news:9n3lep$2km$> 1@inn.qnx.com> …
What version of Neutrino? I have used it with 6.0 and C++.
“Marty Doane” <> marty.doane@rapistan.com> > wrote in message
news:9mg67q$5s6$> 1@inn.qnx.com> …
I’m exploring the use of malloc_g. I’ve made a sample program as simple
as
I
can:
#include <malloc_g/malloc.h
int main(int argc, char* argv[])
{
return 0;
}
If I build with:
cc -g -l malloc_g -o mallocg mallocg.c
it builds cleanly.
If I build with:
cc -g -lang-c++ -l malloc_g -o mallocg mallocg.c
I get the following errors:
In file included from /usr/include/malloc_g/malloc-lib.h:8,
from /usr/include/malloc_g/malloc.h:125,
from mallocg.c:1:
/usr/include/sys/types.h:258: size_t' not declared In file included from /usr/include/malloc_g/malloc-lib.h:9, from /usr/include/malloc_g/malloc.h:125, from mallocg.c:1: /usr/include/stdlib.h:129: type specifier omitted for parameter /usr/include/stdlib.h:129: parse error before
)’
/usr/include/stdlib.h:143: size_t' undeclared in namespace
std’
/usr/include/stdlib.h:143: parse error before )' /usr/include/stdlib.h:217: type specifier omitted for parameter /usr/include/stdlib.h:217: parse error before
)’
cc: /usr/lib/gcc-lib/ntox86/2.95.2/cc1plus error 33
The docs recommend using malloc_g with C++. What am I doing wrong?
Thanks,
Marty Doane
\
Thanks for the info.
BTW, if you’re enforcing your trademark on RSN, we’re in big trouble.
Marty
“Graeme Peterson” <gp@qnx.com> wrote in message
news:9n5i5r$8lf$1@inn.qnx.com…
Hi, and yes. We are listening. The Dinkum libs did indeed
introduce an incompatibility. This was fixed internally, but missed
the last release.
Should be available RSN ™.
Cheers.
GP
Marty Doane <> marty.doane@rapistan.com> > wrote:
6.1.
I wonder if the Dinkum libraries introduced a compatability problem.
Anybody from QSSL listening?
“Dwayne Nelson” <> nelsond@intgame.com> > wrote in message
news:9n3lep$2km$> 1@inn.qnx.com> …
What version of Neutrino? I have used it with 6.0 and C++.
“Marty Doane” <> marty.doane@rapistan.com> > wrote in message
news:9mg67q$5s6$> 1@inn.qnx.com> …
I’m exploring the use of malloc_g. I’ve made a sample program as
simple
as
I
can:
#include <malloc_g/malloc.h
int main(int argc, char* argv[])
{
return 0;
}
If I build with:
cc -g -l malloc_g -o mallocg mallocg.c
it builds cleanly.
If I build with:
cc -g -lang-c++ -l malloc_g -o mallocg mallocg.c
I get the following errors:
In file included from /usr/include/malloc_g/malloc-lib.h:8,
from /usr/include/malloc_g/malloc.h:125,
from mallocg.c:1:
/usr/include/sys/types.h:258: size_t' not declared In file included from /usr/include/malloc_g/malloc-lib.h:9, from /usr/include/malloc_g/malloc.h:125, from mallocg.c:1: /usr/include/stdlib.h:129: type specifier omitted for parameter /usr/include/stdlib.h:129: parse error before
)’
/usr/include/stdlib.h:143: size_t' undeclared in namespace
std’
/usr/include/stdlib.h:143: parse error before )' /usr/include/stdlib.h:217: type specifier omitted for parameter /usr/include/stdlib.h:217: parse error before
)’
cc: /usr/lib/gcc-lib/ntox86/2.95.2/cc1plus error 33
The docs recommend using malloc_g with C++. What am I doing wrong?
Thanks,
Marty Doane
\
Well, that made the example work, but as soon as I add some complexity to it
(like a cout), I’m back to compile problems. I guess I’ll wait for the
update.
Thanks,
Marty
“Tools Mail Account” <tools@qnx.com> wrote in message
news:9n5jhb$55b$1@nntp.qnx.com…
Marty Doane <> marty.doane@rapistan.com> > wrote:
6.1.
I wonder if the Dinkum libraries introduced a compatability problem.
Anybody from QSSL listening?
Try the following:
#ifdef __cplusplus
using namespace std;
extern “C”
{
#include <stdio.h
}
#endif
#include <malloc_g/malloc.h
int main (int argc, char* argv[])
{
return 0;
}
Regards,
Marcin
“Dwayne Nelson” <> nelsond@intgame.com> > wrote in message
news:9n3lep$2km$> 1@inn.qnx.com> …
What version of Neutrino? I have used it with 6.0 and C++.
“Marty Doane” <> marty.doane@rapistan.com> > wrote in message
news:9mg67q$5s6$> 1@inn.qnx.com> …
I’m exploring the use of malloc_g. I’ve made a sample program as
simple
as
I
can:
#include <malloc_g/malloc.h
int main(int argc, char* argv[])
{
return 0;
}
If I build with:
cc -g -l malloc_g -o mallocg mallocg.c
it builds cleanly.
If I build with:
cc -g -lang-c++ -l malloc_g -o mallocg mallocg.c
I get the following errors:
In file included from /usr/include/malloc_g/malloc-lib.h:8,
from /usr/include/malloc_g/malloc.h:125,
from mallocg.c:1:
/usr/include/sys/types.h:258: size_t' not declared In file included from /usr/include/malloc_g/malloc-lib.h:9, from /usr/include/malloc_g/malloc.h:125, from mallocg.c:1: /usr/include/stdlib.h:129: type specifier omitted for parameter /usr/include/stdlib.h:129: parse error before
)’
/usr/include/stdlib.h:143: size_t' undeclared in namespace
std’
/usr/include/stdlib.h:143: parse error before )' /usr/include/stdlib.h:217: type specifier omitted for parameter /usr/include/stdlib.h:217: parse error before
)’
cc: /usr/lib/gcc-lib/ntox86/2.95.2/cc1plus error 33
The docs recommend using malloc_g with C++. What am I doing wrong?
Thanks,
Marty Doane
\
I don’t know. I think that Greg may be in trouble. QSSL has been RSN’ing
for about 15 years now.
Not that most of your new software takes 15 years.
“Marty Doane” <marty.doane@rapistan.com> wrote in message
news:9n7rho$ld8$1@inn.qnx.com…
Thanks for the info.
BTW, if you’re enforcing your trademark on RSN, we’re in big trouble.
Marty
“Graeme Peterson” <> gp@qnx.com> > wrote in message
news:9n5i5r$8lf$> 1@inn.qnx.com> …
Hi, and yes. We are listening. The Dinkum libs did indeed
introduce an incompatibility. This was fixed internally, but missed
the last release.
Should be available RSN ™.
Cheers.
GP
Marty Doane <> marty.doane@rapistan.com> > wrote:
6.1.
I wonder if the Dinkum libraries introduced a compatability problem.
Anybody from QSSL listening?
“Dwayne Nelson” <> nelsond@intgame.com> > wrote in message
news:9n3lep$2km$> 1@inn.qnx.com> …
What version of Neutrino? I have used it with 6.0 and C++.
“Marty Doane” <> marty.doane@rapistan.com> > wrote in message
news:9mg67q$5s6$> 1@inn.qnx.com> …
I’m exploring the use of malloc_g. I’ve made a sample program as
simple
as
I
can:
#include <malloc_g/malloc.h
int main(int argc, char* argv[])
{
return 0;
}
If I build with:
cc -g -l malloc_g -o mallocg mallocg.c
it builds cleanly.
If I build with:
cc -g -lang-c++ -l malloc_g -o mallocg mallocg.c
I get the following errors:
In file included from /usr/include/malloc_g/malloc-lib.h:8,
from /usr/include/malloc_g/malloc.h:125,
from mallocg.c:1:
/usr/include/sys/types.h:258: size_t' not declared In file included from /usr/include/malloc_g/malloc-lib.h:9, from /usr/include/malloc_g/malloc.h:125, from mallocg.c:1: /usr/include/stdlib.h:129: type specifier omitted for parameter /usr/include/stdlib.h:129: parse error before
)’
/usr/include/stdlib.h:143: size_t' undeclared in namespace
std’
/usr/include/stdlib.h:143: parse error before )' /usr/include/stdlib.h:217: type specifier omitted for parameter /usr/include/stdlib.h:217: parse error before
)’
cc: /usr/lib/gcc-lib/ntox86/2.95.2/cc1plus error 33
The docs recommend using malloc_g with C++. What am I doing wrong?
Thanks,
Marty Doane
\