Guest User

Untitled

a guest
Jun 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.75 KB | None | 0 0
  1. tylkas@tylkas-home ~/Dropbox/Devel/dns-client $ make
  2. g++ -c -o dns-client.o dns-client.cpp
  3. dns-client.cpp: In function ‘int gethostip(std::string)’:
  4. dns-client.cpp:55:37: error: elements of array ‘gethostip(std::string)::RES_RECORD answers [20]’ have incomplete type
  5. dns-client.cpp:55:37: error: storage size of ‘answers’ isn’t known
  6. dns-client.cpp:55:46: error: elements of array ‘gethostip(std::string)::RES_RECORD auth [20]’ have incomplete type
  7. dns-client.cpp:55:46: error: storage size of ‘auth’ isn’t known
  8. dns-client.cpp:55:56: error: elements of array ‘gethostip(std::string)::RES_RECORD addit [20]’ have incomplete type
  9. dns-client.cpp:55:56: error: storage size of ‘addit’ isn’t known
  10. dns-client.cpp:61:33: error: ‘host’ was not declared in this scope
  11. dns-client.cpp:67:42: error: ‘dns_servers’ was not declared in this scope
  12. dns-client.cpp:72:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  13. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  14. dns-client.cpp:73:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  15. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  16. dns-client.cpp:74:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  17. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  18. dns-client.cpp:75:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  19. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  20. dns-client.cpp:76:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  21. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  22. dns-client.cpp:77:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  23. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  24. dns-client.cpp:78:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  25. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  26. dns-client.cpp:79:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  27. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  28. dns-client.cpp:80:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  29. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  30. dns-client.cpp:81:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  31. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  32. dns-client.cpp:82:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  33. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  34. dns-client.cpp:83:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  35. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  36. dns-client.cpp:84:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  37. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  38. dns-client.cpp:85:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  39. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  40. dns-client.cpp:86:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  41. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  42. dns-client.cpp:89:61: error: invalid application of ‘sizeof’ to incomplete type ‘gethostip(std::string)::DNS_HEADER’
  43. dns-client.cpp:91:43: error: ‘ChangetoDnsNameFormat’ was not declared in this scope
  44. dns-client.cpp:92:63: error: invalid application of ‘sizeof’ to incomplete type ‘gethostip(std::string)::DNS_HEADER’
  45. dns-client.cpp:94:14: error: invalid use of incomplete type ‘struct gethostip(std::string)::QUESTION’
  46. dns-client.cpp:59:16: error: forward declaration of ‘struct gethostip(std::string)::QUESTION’
  47. dns-client.cpp:94:31: error: ‘query_type’ was not declared in this scope
  48. dns-client.cpp:95:14: error: invalid use of incomplete type ‘struct gethostip(std::string)::QUESTION’
  49. dns-client.cpp:59:16: error: forward declaration of ‘struct gethostip(std::string)::QUESTION’
  50. dns-client.cpp:99:57: error: invalid application of ‘sizeof’ to incomplete type ‘gethostip(std::string)::DNS_HEADER’
  51. dns-client.cpp:99:116: error: invalid application of ‘sizeof’ to incomplete type ‘gethostip(std::string)::QUESTION’
  52. dns-client.cpp:117:47: error: invalid application of ‘sizeof’ to incomplete type ‘gethostip(std::string)::DNS_HEADER’
  53. dns-client.cpp:117:106: error: invalid application of ‘sizeof’ to incomplete type ‘gethostip(std::string)::QUESTION’
  54. dns-client.cpp:120:44: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  55. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  56. dns-client.cpp:121:42: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  57. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  58. dns-client.cpp:122:56: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  59. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  60. dns-client.cpp:123:57: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  61. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  62. dns-client.cpp:128:28: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  63. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  64. dns-client.cpp:130:58: error: ‘ReadName’ was not declared in this scope
  65. dns-client.cpp:134:55: error: invalid application of ‘sizeof’ to incomplete type ‘gethostip(std::string)::R_DATA’
  66. dns-client.cpp:157:28: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  67. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  68. dns-client.cpp:159:55: error: ‘ReadName’ was not declared in this scope
  69. dns-client.cpp:163:45: error: invalid application of ‘sizeof’ to incomplete type ‘gethostip(std::string)::R_DATA’
  70. dns-client.cpp:170:28: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  71. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  72. dns-client.cpp:172:56: error: ‘ReadName’ was not declared in this scope
  73. dns-client.cpp:176:45: error: invalid application of ‘sizeof’ to incomplete type ‘gethostip(std::string)::R_DATA’
  74. dns-client.cpp:195:54: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  75. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  76. dns-client.cpp:196:32: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  77. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  78. dns-client.cpp:200:57: error: ‘T_A’ was not declared in this scope
  79. dns-client.cpp:218:59: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  80. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  81. dns-client.cpp:219:33: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  82. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  83. dns-client.cpp:231:58: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  84. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  85. dns-client.cpp:232:31: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  86. dns-client.cpp:58:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  87. dns-client.cpp:244:9: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
  88. make: *** [dns-client.o] Ошибка 1
  89. tylkas@tylkas-home ~/Dropbox/Devel/dns-client $ make
  90. g++ -c -o dns-client.o dns-client.cpp
  91. dns-client.cpp: In function ‘int gethostip(std::string)’:
  92. dns-client.cpp:69:33: error: ‘host’ was not declared in this scope
  93. dns-client.cpp:75:42: error: ‘dns_servers’ was not declared in this scope
  94. dns-client.cpp:80:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  95. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  96. dns-client.cpp:81:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  97. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  98. dns-client.cpp:82:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  99. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  100. dns-client.cpp:83:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  101. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  102. dns-client.cpp:84:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  103. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  104. dns-client.cpp:85:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  105. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  106. dns-client.cpp:86:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  107. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  108. dns-client.cpp:87:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  109. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  110. dns-client.cpp:88:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  111. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  112. dns-client.cpp:89:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  113. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  114. dns-client.cpp:90:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  115. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  116. dns-client.cpp:91:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  117. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  118. dns-client.cpp:92:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  119. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  120. dns-client.cpp:93:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  121. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  122. dns-client.cpp:94:12: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  123. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  124. dns-client.cpp:97:61: error: invalid application of ‘sizeof’ to incomplete type ‘gethostip(std::string)::DNS_HEADER’
  125. dns-client.cpp:99:43: error: ‘ChangetoDnsNameFormat’ was not declared in this scope
  126. dns-client.cpp:100:63: error: invalid application of ‘sizeof’ to incomplete type ‘gethostip(std::string)::DNS_HEADER’
  127. dns-client.cpp:102:14: error: invalid use of incomplete type ‘struct gethostip(std::string)::QUESTION’
  128. dns-client.cpp:67:16: error: forward declaration of ‘struct gethostip(std::string)::QUESTION’
  129. dns-client.cpp:102:31: error: ‘query_type’ was not declared in this scope
  130. dns-client.cpp:103:14: error: invalid use of incomplete type ‘struct gethostip(std::string)::QUESTION’
  131. dns-client.cpp:67:16: error: forward declaration of ‘struct gethostip(std::string)::QUESTION’
  132. dns-client.cpp:107:57: error: invalid application of ‘sizeof’ to incomplete type ‘gethostip(std::string)::DNS_HEADER’
  133. dns-client.cpp:107:116: error: invalid application of ‘sizeof’ to incomplete type ‘gethostip(std::string)::QUESTION’
  134. dns-client.cpp:125:47: error: invalid application of ‘sizeof’ to incomplete type ‘gethostip(std::string)::DNS_HEADER’
  135. dns-client.cpp:125:106: error: invalid application of ‘sizeof’ to incomplete type ‘gethostip(std::string)::QUESTION’
  136. dns-client.cpp:128:44: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  137. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  138. dns-client.cpp:129:42: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  139. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  140. dns-client.cpp:130:56: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  141. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  142. dns-client.cpp:131:57: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  143. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  144. dns-client.cpp:136:28: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  145. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  146. dns-client.cpp:138:58: error: ‘ReadName’ was not declared in this scope
  147. dns-client.cpp:142:55: error: invalid application of ‘sizeof’ to incomplete type ‘R_DATA’
  148. dns-client.cpp:144:45: error: invalid use of incomplete type ‘struct R_DATA’
  149. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  150. dns-client.cpp:146:92: error: invalid use of incomplete type ‘struct R_DATA’
  151. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  152. dns-client.cpp:148:62: error: invalid use of incomplete type ‘struct R_DATA’
  153. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  154. dns-client.cpp:153:67: error: invalid use of incomplete type ‘struct R_DATA’
  155. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  156. dns-client.cpp:155:68: error: invalid use of incomplete type ‘struct R_DATA’
  157. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  158. dns-client.cpp:165:28: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  159. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  160. dns-client.cpp:167:55: error: ‘ReadName’ was not declared in this scope
  161. dns-client.cpp:171:45: error: invalid application of ‘sizeof’ to incomplete type ‘R_DATA’
  162. dns-client.cpp:178:28: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  163. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  164. dns-client.cpp:180:56: error: ‘ReadName’ was not declared in this scope
  165. dns-client.cpp:184:45: error: invalid application of ‘sizeof’ to incomplete type ‘R_DATA’
  166. dns-client.cpp:186:43: error: invalid use of incomplete type ‘struct R_DATA’
  167. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  168. dns-client.cpp:188:88: error: invalid use of incomplete type ‘struct R_DATA’
  169. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  170. dns-client.cpp:189:58: error: invalid use of incomplete type ‘struct R_DATA’
  171. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  172. dns-client.cpp:192:63: error: invalid use of incomplete type ‘struct R_DATA’
  173. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  174. dns-client.cpp:193:56: error: invalid use of incomplete type ‘struct R_DATA’
  175. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  176. dns-client.cpp:203:54: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  177. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  178. dns-client.cpp:204:32: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  179. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  180. dns-client.cpp:208:46: error: invalid use of incomplete type ‘struct R_DATA’
  181. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  182. dns-client.cpp:208:57: error: ‘T_A’ was not declared in this scope
  183. dns-client.cpp:216:45: error: invalid use of incomplete type ‘struct R_DATA’
  184. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  185. dns-client.cpp:226:59: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  186. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  187. dns-client.cpp:227:33: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  188. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  189. dns-client.cpp:231:42: error: invalid use of incomplete type ‘struct R_DATA’
  190. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  191. dns-client.cpp:239:58: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  192. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  193. dns-client.cpp:240:31: error: invalid use of incomplete type ‘struct gethostip(std::string)::DNS_HEADER’
  194. dns-client.cpp:66:16: error: forward declaration of ‘struct gethostip(std::string)::DNS_HEADER’
  195. dns-client.cpp:243:43: error: invalid use of incomplete type ‘struct R_DATA’
  196. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  197. dns-client.cpp:252:9: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
  198. make: *** [dns-client.o] Ошибка 1
  199. tylkas@tylkas-home ~/Dropbox/Devel/dns-client $
  200. tylkas@tylkas-home ~/Dropbox/Devel/dns-client $
  201. tylkas@tylkas-home ~/Dropbox/Devel/dns-client $
  202. tylkas@tylkas-home ~/Dropbox/Devel/dns-client $
  203. tylkas@tylkas-home ~/Dropbox/Devel/dns-client $
  204. tylkas@tylkas-home ~/Dropbox/Devel/dns-client $
  205. tylkas@tylkas-home ~/Dropbox/Devel/dns-client $ make
  206. g++ -c -o dns-client.o dns-client.cpp
  207. dns-client.cpp: In function ‘int gethostip(std::string)’:
  208. dns-client.cpp:92:33: error: ‘host’ was not declared in this scope
  209. dns-client.cpp:98:42: error: ‘dns_servers’ was not declared in this scope
  210. dns-client.cpp:122:43: error: ‘ChangetoDnsNameFormat’ was not declared in this scope
  211. dns-client.cpp:125:14: error: invalid use of incomplete type ‘struct gethostip(std::string)::QUESTION’
  212. dns-client.cpp:90:16: error: forward declaration of ‘struct gethostip(std::string)::QUESTION’
  213. dns-client.cpp:125:31: error: ‘query_type’ was not declared in this scope
  214. dns-client.cpp:126:14: error: invalid use of incomplete type ‘struct gethostip(std::string)::QUESTION’
  215. dns-client.cpp:90:16: error: forward declaration of ‘struct gethostip(std::string)::QUESTION’
  216. dns-client.cpp:130:116: error: invalid application of ‘sizeof’ to incomplete type ‘gethostip(std::string)::QUESTION’
  217. dns-client.cpp:148:106: error: invalid application of ‘sizeof’ to incomplete type ‘gethostip(std::string)::QUESTION’
  218. dns-client.cpp:161:58: error: ‘ReadName’ was not declared in this scope
  219. dns-client.cpp:165:55: error: invalid application of ‘sizeof’ to incomplete type ‘R_DATA’
  220. dns-client.cpp:167:45: error: invalid use of incomplete type ‘struct R_DATA’
  221. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  222. dns-client.cpp:169:92: error: invalid use of incomplete type ‘struct R_DATA’
  223. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  224. dns-client.cpp:171:62: error: invalid use of incomplete type ‘struct R_DATA’
  225. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  226. dns-client.cpp:176:67: error: invalid use of incomplete type ‘struct R_DATA’
  227. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  228. dns-client.cpp:178:68: error: invalid use of incomplete type ‘struct R_DATA’
  229. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  230. dns-client.cpp:190:55: error: ‘ReadName’ was not declared in this scope
  231. dns-client.cpp:194:45: error: invalid application of ‘sizeof’ to incomplete type ‘R_DATA’
  232. dns-client.cpp:203:56: error: ‘ReadName’ was not declared in this scope
  233. dns-client.cpp:207:45: error: invalid application of ‘sizeof’ to incomplete type ‘R_DATA’
  234. dns-client.cpp:209:43: error: invalid use of incomplete type ‘struct R_DATA’
  235. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  236. dns-client.cpp:211:88: error: invalid use of incomplete type ‘struct R_DATA’
  237. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  238. dns-client.cpp:212:58: error: invalid use of incomplete type ‘struct R_DATA’
  239. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  240. dns-client.cpp:215:63: error: invalid use of incomplete type ‘struct R_DATA’
  241. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  242. dns-client.cpp:216:56: error: invalid use of incomplete type ‘struct R_DATA’
  243. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  244. dns-client.cpp:231:46: error: invalid use of incomplete type ‘struct R_DATA’
  245. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  246. dns-client.cpp:231:57: error: ‘T_A’ was not declared in this scope
  247. dns-client.cpp:239:45: error: invalid use of incomplete type ‘struct R_DATA’
  248. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  249. dns-client.cpp:254:42: error: invalid use of incomplete type ‘struct R_DATA’
  250. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  251. dns-client.cpp:266:43: error: invalid use of incomplete type ‘struct R_DATA’
  252. dns-client.cpp:26:16: error: forward declaration of ‘struct R_DATA’
  253. dns-client.cpp:275:9: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
  254. make: *** [dns-client.o] Ошибка 1
  255. tylkas@tylkas-home ~/Dropbox/Devel/dns-client $ make
  256. g++ -c -o dns-client.o dns-client.cpp
  257. dns-client.cpp: In function ‘int gethostip(std::string)’:
  258. dns-client.cpp:109:33: error: ‘host’ was not declared in this scope
  259. dns-client.cpp:115:42: error: ‘dns_servers’ was not declared in this scope
  260. dns-client.cpp:139:43: error: ‘ChangetoDnsNameFormat’ was not declared in this scope
  261. dns-client.cpp:142:31: error: ‘query_type’ was not declared in this scope
  262. dns-client.cpp:178:58: error: ‘ReadName’ was not declared in this scope
  263. dns-client.cpp:207:55: error: ‘ReadName’ was not declared in this scope
  264. dns-client.cpp:220:56: error: ‘ReadName’ was not declared in this scope
  265. dns-client.cpp:248:57: error: ‘T_A’ was not declared in this scope
  266. dns-client.cpp:292:9: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
  267. make: *** [dns-client.o] Ошибка 1
  268. tylkas@tylkas-home ~/Dropbox/Devel/dns-client $ make
  269. g++ -c -o dns-client.o dns-client.cpp
  270. dns-client.cpp: In function ‘int gethostip(std::string)’:
  271. dns-client.cpp:109:33: error: ‘host’ was not declared in this scope
  272. dns-client.cpp:115:42: error: ‘dns_servers’ was not declared in this scope
  273. dns-client.cpp:139:43: error: ‘ChangetoDnsNameFormat’ was not declared in this scope
  274. dns-client.cpp:142:31: error: ‘query_type’ was not declared in this scope
  275. dns-client.cpp:178:58: error: ‘ReadName’ was not declared in this scope
  276. dns-client.cpp:207:55: error: ‘ReadName’ was not declared in this scope
  277. dns-client.cpp:220:56: error: ‘ReadName’ was not declared in this scope
  278. dns-client.cpp:292:9: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
  279. make: *** [dns-client.o] Ошибка 1
  280. tylkas@tylkas-home ~/Dropbox/Devel/dns-client $ make
  281. g++ -c -o dns-client.o dns-client.cpp
  282. dns-client.cpp: In function ‘int gethostip(std::string)’:
  283. dns-client.cpp:109:33: error: ‘host’ was not declared in this scope
  284. dns-client.cpp:115:42: error: ‘dns_servers’ was not declared in this scope
  285. dns-client.cpp:139:43: error: ‘ChangetoDnsNameFormat’ was not declared in this scope
  286. dns-client.cpp:142:31: error: ‘query_type’ was not declared in this scope
  287. dns-client.cpp:178:58: error: ‘ReadName’ was not declared in this scope
  288. dns-client.cpp:207:55: error: ‘ReadName’ was not declared in this scope
  289. dns-client.cpp:220:56: error: ‘ReadName’ was not declared in this scope
  290. dns-client.cpp:292:9: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
  291. dns-client.cpp: In function ‘int main(int, char**)’:
  292. dns-client.cpp:300:19: error: no match for ‘operator*’ in ‘*dns_server’
  293. dns-client.cpp:318:38: error: too many arguments to function ‘int gethostip(std::string)’
  294. dns-client.cpp:96:5: note: declared here
  295. make: *** [dns-client.o] Ошибка 1
  296. tylkas@tylkas-home ~/Dropbox/Devel/dns-client $ make
  297. g++ -c -o dns-client.o dns-client.cpp
  298. dns-client.cpp: In function ‘int gethostip(std::string, std::string)’:
  299. dns-client.cpp:109:33: error: ‘host’ was not declared in this scope
  300. dns-client.cpp:115:42: error: ‘dns_servers’ was not declared in this scope
  301. dns-client.cpp:139:43: error: ‘ChangetoDnsNameFormat’ was not declared in this scope
  302. dns-client.cpp:142:31: error: ‘query_type’ was not declared in this scope
  303. dns-client.cpp:178:58: error: ‘ReadName’ was not declared in this scope
  304. dns-client.cpp:207:55: error: ‘ReadName’ was not declared in this scope
  305. dns-client.cpp:220:56: error: ‘ReadName’ was not declared in this scope
  306. dns-client.cpp:292:9: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
  307. dns-client.cpp: In function ‘int main(int, char**)’:
  308. dns-client.cpp:300:19: error: no match for ‘operator*’ in ‘*dns_server’
  309. make: *** [dns-client.o] Ошибка 1
  310. tylkas@tylkas-home ~/Dropbox/Devel/dns-client $ make
  311. g++ -c -o dns-client.o dns-client.cpp
  312. dns-client.cpp: In function ‘int gethostip(std::string, std::string)’:
  313. dns-client.cpp:109:33: error: ‘host’ was not declared in this scope
  314. dns-client.cpp:115:52: error: cannot convert ‘std::string {aka std::basic_string<char>}’ to ‘const char*’ for argument ‘1’ to ‘in_addr_t inet_addr(const char*)’
  315. dns-client.cpp:139:43: error: ‘ChangetoDnsNameFormat’ was not declared in this scope
  316. dns-client.cpp:142:31: error: ‘query_type’ was not declared in this scope
  317. dns-client.cpp:178:58: error: ‘ReadName’ was not declared in this scope
  318. dns-client.cpp:207:55: error: ‘ReadName’ was not declared in this scope
  319. dns-client.cpp:220:56: error: ‘ReadName’ was not declared in this scope
  320. dns-client.cpp:292:9: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
  321. dns-client.cpp: In function ‘int main(int, char**)’:
  322. dns-client.cpp:300:19: error: no match for ‘operator*’ in ‘*dns_server’
  323. make: *** [dns-client.o] Ошибка 1
  324. tylkas@tylkas-home ~/Dropbox/Devel/dns-client $ make
  325. g++ -c -o dns-client.o dns-client.cpp
  326. dns-client.cpp: In function ‘int gethostip(std::string, std::string)’:
  327. dns-client.cpp:109:33: error: ‘host’ was not declared in this scope
  328. dns-client.cpp:115:52: error: cannot convert ‘std::string {aka std::basic_string<char>}’ to ‘const char*’ for argument ‘1’ to ‘in_addr_t inet_addr(const char*)’
  329. dns-client.cpp:139:43: error: ‘ChangetoDnsNameFormat’ was not declared in this scope
  330. dns-client.cpp:142:31: error: ‘query_type’ was not declared in this scope
  331. dns-client.cpp:178:58: error: ‘ReadName’ was not declared in this scope
  332. dns-client.cpp:207:55: error: ‘ReadName’ was not declared in this scope
  333. dns-client.cpp:220:56: error: ‘ReadName’ was not declared in this scope
  334. dns-client.cpp:292:9: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
  335. dns-client.cpp: In function ‘int main(int, char**)’:
  336. dns-client.cpp:300:29: error: could not convert ‘& dns_server’ from ‘std::string* {aka std::basic_string<char>*}’ to ‘std::string {aka std::basic_string<char>}’
  337. make: *** [dns-client.o] Ошибка 1
  338. tylkas@tylkas-home ~/Dropbox/Devel/dns-client $ make
  339. g++ -c -o dns-client.o dns-client.cpp
  340. dns-client.cpp: In function ‘int gethostip(std::string, std::string)’:
  341. dns-client.cpp:109:33: error: ‘host’ was not declared in this scope
  342. dns-client.cpp:115:52: error: cannot convert ‘std::string {aka std::basic_string<char>}’ to ‘const char*’ for argument ‘1’ to ‘in_addr_t inet_addr(const char*)’
  343. dns-client.cpp:139:43: error: ‘ChangetoDnsNameFormat’ was not declared in this scope
  344. dns-client.cpp:142:31: error: ‘query_type’ was not declared in this scope
  345. dns-client.cpp:178:58: error: ‘ReadName’ was not declared in this scope
  346. dns-client.cpp:207:55: error: ‘ReadName’ was not declared in this scope
  347. dns-client.cpp:220:56: error: ‘ReadName’ was not declared in this scope
  348. dns-client.cpp:292:9: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
  349. make: *** [dns-client.o] Ошибка 1
  350. tylkas@tylkas-home ~/Dropbox/Devel/dns-client $ make
  351. g++ -c -o dns-client.o dns-client.cpp
  352. dns-client.cpp: In function ‘int gethostip(std::string, std::string)’:
  353. dns-client.cpp:109:33: error: ‘host’ was not declared in this scope
  354. dns-client.cpp:139:43: error: ‘ChangetoDnsNameFormat’ was not declared in this scope
  355. dns-client.cpp:142:31: error: ‘query_type’ was not declared in this scope
  356. dns-client.cpp:178:58: error: ‘ReadName’ was not declared in this scope
  357. dns-client.cpp:207:55: error: ‘ReadName’ was not declared in this scope
  358. dns-client.cpp:220:56: error: ‘ReadName’ was not declared in this scope
  359. dns-client.cpp:292:9: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
  360. make: *** [dns-client.o] Ошибка 1
  361. tylkas@tylkas-home ~/Dropbox/Devel/dns-client $ make
  362. g++ -c -o dns-client.o dns-client.cpp
  363. dns-client.cpp: In function ‘int gethostip(std::string, std::string)’:
  364. dns-client.cpp:109:33: error: ‘host’ was not declared in this scope
  365. dns-client.cpp:139:43: error: ‘ChangetoDnsNameFormat’ was not declared in this scope
  366. dns-client.cpp:142:31: error: ‘query_type’ was not declared in this scope
  367. dns-client.cpp:178:58: error: ‘ReadName’ was not declared in this scope
  368. dns-client.cpp:207:55: error: ‘ReadName’ was not declared in this scope
  369. dns-client.cpp:220:56: error: ‘ReadName’ was not declared in this scope
  370. make: *** [dns-client.o] Ошибка 1
Add Comment
Please, Sign In to add comment