Jump to content

the use of `tmpnam' is dangerous, better use `mkstemp'


danieru
 Share

Recommended Posts

Trying to compile any C++ project generated by the Project Manager always gives an error saying " the use of `tmpnam' is dangerous, better use `mkstemp' ".

 

I'm using Ubuntu 14.04 as operating system, Code::Blocks 13.12 as IDE and g++ 4.8.2 as compiler.

Link to comment
Share on other sites

I tried using

-Wno-deprecated-declarations

But I still get the annoying message.

 

Problem solved. Because the message said " aviso: " and not " warning: " Code::Blocks interpreted as an error, stopping the compilation. So the way to fix it is change the language of gcc output to english.

 

Even so I still have more errors...

 

the second was:

undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'

So I added -pthread to linker settings, and now I have another error

undefined reference to symbol 'XGetWindowAttributes'

I have already installed libx11-dev, so again i have no idea

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...