As i'm not really asking for help rather just a general discussion that has bothered me for some time involving c++ (i felt this would be the right place but if not feel free to move it to programming section)
I've been put off c++ for a long time and even now as i want to use it more there are little things that always seem to bite me in the rear
has anyone else ever had issues with downloading someone else's source code to play with to find that it never works correctly? i always think i'm doing something wrong but this is starting to get ridiculous
I wanted to write a little server program using sockets under Linux (ubuntu) and i thought to myself i'll look around the net for a socket solution so i don't waste to much time on it...anyway i came across this site
a tgz file was available for download including the source and pretty much everything i needed so i decided to download it through linux using wget
i then unzipped the files using the information provided by the site and once the files were extracted i typed "make" to compile the files so i could use them
straight away i get hit back with errors preventing the code from working (i've downloaded several samples so far with this same problem so this was kind of the last straw)
Am i the only one experiencing this issue? am i missing some highly general/common knowledge that i'm meant to apply before i can download and try other peoples source code? why is it such an issue in c++ to have code that simply works correctly without me having to add extra stuff that is never mentioned
so i ask am i the only one?
(fyi the issue was
second argument of 'int main(int, int*)' should be 'char **'
Question
DDStriker
As i'm not really asking for help rather just a general discussion that has bothered me for some time involving c++ (i felt this would be the right place but if not feel free to move it to programming section)
I've been put off c++ for a long time and even now as i want to use it more there are little things that always seem to bite me in the rear
has anyone else ever had issues with downloading someone else's source code to play with to find that it never works correctly? i always think i'm doing something wrong but this is starting to get ridiculous
I wanted to write a little server program using sockets under Linux (ubuntu) and i thought to myself i'll look around the net for a socket solution so i don't waste to much time on it...anyway i came across this site
http://coderstalk.blogspot.com/2008/02/sim...ramming-in.html
a tgz file was available for download including the source and pretty much everything i needed so i decided to download it through linux using wget
i then unzipped the files using the information provided by the site and once the files were extracted i typed "make" to compile the files so i could use them
straight away i get hit back with errors preventing the code from working (i've downloaded several samples so far with this same problem so this was kind of the last straw)
Am i the only one experiencing this issue? am i missing some highly general/common knowledge that i'm meant to apply before i can download and try other peoples source code? why is it such an issue in c++ to have code that simply works correctly without me having to add extra stuff that is never mentioned
so i ask am i the only one?
(fyi the issue was
)Link to comment
Share on other sites
11 answers to this question
Recommended Posts