Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxÏÂÈçºÎʹÓÃgdal¿â¿ª·¢£¿

¿ª·¢»·¾³ÊÇubuntu¡£
´úÂëÀïÃæÓõ½gdal¿â¶ÁдͼÏñÎļþ¡£
makeµÄʱºò£¬³öÏÖÒ»¶Ñ
main.cpp:(.text+0x71): undefined reference to `GDALAllRegister'
main.cpp:(.text+0x81): undefined reference to `GDALOpen'
main.cpp:(.text+0x97): undefined reference to `GDALDataset::GetRasterCount()'
main.cpp:(.text+0xa5): undefined reference to `GDALDataset::GetRasterXSize()'
main.cpp:(.text+0xb3): undefined reference to `GDALDataset::GetRasterYSize()'
main.cpp:(.text+0xf1): undefined reference to `GDALDataset::GetRasterBand(int)
ÕâÑùµÄ´íÎó¡£
Ó¦¸ÃÊÇûÓÐÕÒµ½Í·ÎļþËùÖ¡£
ÎÒÔÚwindowsÏÂÃæ±àÒëÕý³£¡£
gdalÔÚlinuxÏÂҲͨ¹ýcongfigure,make,make install°²×°Õý³£¡£
ÊÇ·ñÔÚ±àÒë×Ô¼ºÀûÓÃgdal¿â¿ª·¢µÄ³ÌÐòµÄʱºòÐèÒªÉèÖÃʲô£¿ÔÚÄÄÀïÉ裿

ÒýÓÃ
¶Ôlinux²»Êì
¹ÙÍøÉÏÓÐ˵Ã÷»ò½Ì³ÌµÄ°É

ºÃÏñgdalµÄ¹ÙÍøÉÏûÓоßÌåµÄ˵Ã÷°¡¡£


Ïà¹ØÎÊ´ð£º

linux»·¾³ÏÂgethostbynameº¯ÊýÎÊÌâ - C/C++ / CÓïÑÔ

дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
   
  struct hostent *hp; 
char AlarmDevIP[20];  
  int x2;

hp = gethostbyname("www.google.com");
if (hp)
{ ......

¸ü¸ÄlinuxĿ¼

Ó¦ÓÃϵͳÊǰ²×°ÔÚ /opt Ŀ¼Ï£¬/opt Ŀ¼ÊÇÊôÓÚ¸ùĿ¼ / ϵġ£ÁíÍâÒ»¸öÎļþϵͳµÄ¹ÒÔØµãÊÇÔÚ/aaaĿ¼Ï£¬¿É·ñ½«/optĿ¼ÏµÄËùÓÐÎļþcopyµ½/aaaĿ¼Ï£¬umount ÔÚ/aaaĿ¼ÏµĹÒÔØµã£¬½«/aaa¸ÄÃû/optĿ¼£¬ÔÙ½«Ô­À ......

Çólinux time ÃüÁîµÄʵÏÖ´úÂë

ÈçÌ⣬лл

LinuxÊÇ¿ªÔ´µÄ£¬ÄãËÑË÷LinuxÔ´³ÌÐòĿ¼¾Í¿ÉÒÔÕÒµ½shellÃüÁîtimeµÄʵÏÖ´úÂë¡£

kernel/time.c

ÄãµÄÍ·ÏñºÜ²»´íѽ

ʹÓú¯ÊýtimeΪ½ø³ÌÌṩµ±Ç°µÄʱ¼ä
#include<time.h>
time_t time(time ......

ÎÊÒ»¸ö¹ØÓÚLinuxÎļþ¸ñʽµÄÎÊÌ⣬Çë´ó»ï°ï°ïæ

¶ÔLinux²»Á˽⣬×î½üÓöµ½Ò»¸öÎÊÌâ
ÏÖÔÚÏîÄ¿µÄ¿ØÖưåÀïÔËÐеÄÊÇLinuxϵͳ£¬ÓÐÒ»¸öC³ÌÐòÔÚÔËÐÐ
ÎÒÔÚÉÏλ»úÀï¶ÔÕâ¸ö¿ØÖưåµÄһЩ²ÎÊý½øÐÐÉèÖ㬲¢Éú³ÉÒ»¸öÉèÖÃÎļþ´«¸ø¿ØÖưå
ÉÏλ»úÊÇWindowsϵͳ£¬ÎÒ¸ÃÉú³Éʲô¸ñʽ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ