![]() |
Basic Socket Programming Error in Linux.. Pls help
Hi! I don't have experiance in linux C programming. I took a linux socket programming book and tried the first example code but It didn't work. I use these codes.. please help me!
Thanks for your replies :
#include <stdio.h>Error Message: :
bora.c: In function main:I used this command to compile :
gcc bora.c -o bora `pkg-config --cflags --libs gtk+-2.0` |
You cannot use quotes of the opening/closing type. Use the ordinary double-quote character, ".
|
First of all, Thanks for your reply DaWei.
As I see, I didn't use ' character instead of " in my codes. My english isn't very well so, I couldn't understand where I did a mistake. Can you edit for me then I will be able to understand these codes correctly. |
This: “s[0] = %d;\n” is not the same thing as
this: "s[0] = %d;\n" |
ok! I will try '' in a moment. I'll write what terminal displays.
|
Bear in mind that " is a single character, not two of these: '
Crap, man, I have no idea what kind of keyboard you have, or even where you're getting the open/close variety of double-quote. Presuming you have a normal American/English keyboard, look at the dam' key just to the left of ENTER. It has a double quote and a single quote on it. Press SHIFT to get the double quote. Don't use some kind of editor or word-processor that substitutes in the open/close variety. |
Ok sir , I understand what you say , I tried again then terminal said ;
I wrote these codes : :
#include <stdio.h>:
bora@ciner:~/Desktop> gcc bora.c -o bora `pkg-config --cflags --libs gtk+-2.0`I think there are less errors then the other , but I can't compile it again.. :( |
See my previous response. You may have additional problems, but you need to get around this one, first.
|
I have put '' (by pressing 2 times) character instead of " which is created by pressing one time. there are errors again :( but aren't as much as it was
|
Don't use two single quotes! Use one double quote!
I don't know any other way to say that, without getting unduly profane. |
| All times are GMT -5. The time now is 9:22 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC