View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-18-2012, 11:10 AM   #1
Registered: Jul 2012
Posts: 106
Blog Entries: 1

Rep: Reputation: Disabled
Question echoServer:Error with accept()@arg3'conv int*->socklen_t*' on g++.How to fix?

If I compile with g++ instead of gcc the simple echo server from BeeJ guide to Unix Inter Process Communication p.52

I get this error for the accept() function
invalid convertion from int* to socklen_t*

Probably that coversion has gone deprecated on g++. How can I fix it?

Im on Kubuntu 10 g++ 4.4.5
Old 11-19-2012, 02:56 PM   #2
Registered: Jul 2012
Posts: 106
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
I may provide a solution I found, - to not live a zombie thread

I have to cast the type


and it workd with g++ also. If anything wrong or I shouldnt, or something better, you may add. Another 24h open left.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
invalid conversion from `int*' to `socklen_t*' r350 Programming 5 10-02-2011 05:34 PM
C: a function that would accept both INT and INT[] courteous Programming 5 05-28-2011 07:40 AM
[SOLVED] specifying output int based on input int and source IP on multiple 802.1q, tacorama Linux - Networking 1 05-05-2011 07:30 AM
invalid types int[int] for array subscript scuzzman Programming 2 11-16-2004 09:34 PM
firewall error? couldn't load target "accept ...ipt_accept? error piratebiter Linux - Security 1 09-19-2003 05:37 PM

All times are GMT -5. The time now is 02:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration