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¿â¿ª·¢µÄ³ÌÐòµÄʱºòÐèÒªÉèÖÃʲô£¿ÔÚÄÄÀïÉ裿
ºÃÏñgdalµÄ¹ÙÍøÉÏûÓоßÌåµÄ˵Ã÷°¡¡£
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
Ó¦ÓÃϵͳÊǰ²×°ÔÚ /opt Ŀ¼Ï£¬/opt Ŀ¼ÊÇÊôÓÚ¸ùĿ¼ / ϵġ£ÁíÍâÒ»¸öÎļþϵͳµÄ¹ÒÔØµãÊÇÔÚ/aaaĿ¼Ï£¬¿É·ñ½«/optĿ¼ÏµÄËùÓÐÎļþcopyµ½/aaaĿ¼Ï£¬umount ÔÚ/aaaĿ¼ÏµĹÒÔØµã£¬½«/aaa¸ÄÃû/optĿ¼£¬ÔÙ½«ÔÀ ......
ÈçÌ⣬лл
LinuxÊÇ¿ªÔ´µÄ£¬ÄãËÑË÷LinuxÔ´³ÌÐòĿ¼¾Í¿ÉÒÔÕÒµ½shellÃüÁîtimeµÄʵÏÖ´úÂë¡£
kernel/time.c
ÄãµÄÍ·ÏñºÜ²»´íѽ
ʹÓú¯ÊýtimeΪ½ø³ÌÌṩµ±Ç°µÄʱ¼ä
#include<time.h>
time_t time(time ......
¶ÔLinux²»Á˽⣬×î½üÓöµ½Ò»¸öÎÊÌâ
ÏÖÔÚÏîÄ¿µÄ¿ØÖưåÀïÔËÐеÄÊÇLinuxϵͳ£¬ÓÐÒ»¸öC³ÌÐòÔÚÔËÐÐ
ÎÒÔÚÉÏλ»úÀï¶ÔÕâ¸ö¿ØÖưåµÄһЩ²ÎÊý½øÐÐÉèÖ㬲¢Éú³ÉÒ»¸öÉèÖÃÎļþ´«¸ø¿ØÖưå
ÉÏλ»úÊÇWindowsϵͳ£¬ÎÒ¸ÃÉú³Éʲô¸ñʽ ......