C言語
Linuxでpcapを使おうとした際に undefined reference to "pcap_findalldevs" なんて出たので。gcc hoge.c -lpcap でコンパイルが通る。 lの意味は「-lxxxを指定すると、libxxx.aをリンクする」ということ。 ちなみにリンク時に探すディレクトリは-Lオブショ…
時刻を表示したい場合 time_t timer; tm timestruct; TCHAR timebuf[20];//文字列にする場合のバッファtime(&timer); localtime_s(×truct, &timer); wcsftime(timebuf,sizeof(timebuf)/sizeof(timebuf[0]), _T("%m/%d %H:%M:%S),×truct); で、time…