This inspection searches for redundant class fields that can be replaced with local variables. If all local usages of a field are preceded by assignments to that field, the field can be removed and its usages replaced with local variables.


특정 함수내에서만 사용되는 멤버변수(field variable)에 대한 워닝?이다...

함수내(local)로 옮길 수 있다....메모리 낭비 말라? 등으로 해석가능하려나..

vc_mbcsmfc.zip.001

vc_mbcsmfc.zip.002

vc_mbcsmfc.zip.003

vc_mbcsmfc.zip.004

vc_mbcsmfc.zip.005

vc_mbcsmfc.zip.006

vc_mbcsmfc.zip.007

다른 사람이 사용하던 플젝 vs2012에서 빌드되던걸 2013에서 열어봤더니 에러 ;;

사실 PC도 변경...2012에서도 패치를 했는지 잘 모르겠네~ -_-;

패치를 해본다..


1>------ 빌드 시작: 프로젝트: CMyViewer, 구성: Debug Win32 ------

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(376,5): error MSB8031: Building an MFC project for a non-Unicode character set is deprecated. You must change the project property to Unicode or download an additional library. See http://go.microsoft.com/fwlink/p/?LinkId=286820 for more information.

========== 빌드: 성공 0, 실패 1, 최신 0, 생략 0 ==========



페이지로 이동해보면 다운로드 링크를 알려준다. 

https://www.microsoft.com/en-us/download/details.aspx?id=40770

다운받고 실행 ㄱ-

열림 VS2013닫고 다시 ㄱ-...

동의~ ㄱ-


완료 ㄱ-


다시 빌드 ㄱ-


1>------ 빌드 시작: 프로젝트: CMyViewer, 구성: Debug Win32 ------

1>  stdafx.cpp

1>c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\afx.h(38): warning C4996: 'MBCS_Support_Deprecated_In_MFC': MBCS support in MFC is deprecated and may be removed in a future version of MFC.

1>          c:\program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\afx.h(33) : 'MBCS_Support_Deprecated_In_MFC' 선언을 참조하십시오.

...

...

...

1>  코드를 생성하고 있습니다...

1>     .\..\Output\Debug\CMyViewer.lib 라이브러리 및 .\..\Output\Debug\CMyViewer.exp 개체를 생성하고 있습니다.

1>LINK : warning LNK4098: 'MSVCRT' defaultlib가 다른 라이브러리와 충돌합니다. /NODEFAULTLIB:library를 사용하십시오.

1>  CMyViewer.vcxproj -> C:\Project\CMyViewer_2013\CMyViewer\.\..\Output\Debug\CMyViewer.dll

========== 빌드: 성공 1, 실패 0, 최신 0, 생략 0 ==========


빌드는 된다...-_-;;;




<!DOCTYPE html>

<html>

<body>

<p id="demo"></p>

<script>

var d = new Date();

document.getElementById("demo").innerHTML = d;

alert(d.getTimezoneOffset()/-60);

</script>

</body>

</html>

getTimeZone.hml


와 미치겠네 ..;;;

phpinfo 출력안되서 뭐 잘못했나 하루죙일 뒤졌는데..

허무하네..ㅠㅠ

오메...황당한거..

이렇게 씀...절대 안나옴 ;;;v 5.3.1 

<? phpinfo(); ?>


욜케 바꿈 -_-;;;;으아아아아아아...

<?php phpinfo(); ?>


출처..http://kernel-baramil.blogspot.kr/2014/02/phpinfo.html



Go Tour 중에 오프라인으로 설치하면 더 빠르다고 해서 설치 중..

https://go-tour-kr.appspot.com/#1



go get code.google.com/p/go-tour/gotour

라고 쳤는데, gccgo-go 를 설치 하라네..쥐씨씨고고?? ㅋ

The program 'go' is currently not installed. You can install it by typing:

sudo apt-get install gccgo-go


Reading package lists... Done

Building dependency tree       

Reading state information... Done

The following extra packages will be installed:

  gccgo gccgo-4.9 libgo5

Suggested packages:

  gccgo-multilib gccgo-4.9-doc libgo5-dbg

The following NEW packages will be installed:

  gccgo gccgo-4.9 gccgo-go libgo5

0 upgraded, 4 newly installed, 0 to remove and 11 not upgraded.

Need to get 24.5 MB of archives.

After this operation, 110 MB of additional disk space will be used.

Do you want to continue? [Y/n] y

Get:1 http://ftp.daum.net/ubuntu/ trusty-updates/main libgo5 amd64 4.9.3-0ubuntu4 [2,600 kB]

Get:2 http://ftp.daum.net/ubuntu/ trusty-updates/universe gccgo-4.9 amd64 4.9.3-0ubuntu4 [21.5 MB]

Get:3 http://ftp.daum.net/ubuntu/ trusty/universe gccgo amd64 4:4.9-1ubuntu6 [1,060 B]

Get:4 http://ftp.daum.net/ubuntu/ trusty-updates/universe gccgo-go amd64 1.2.1-0ubuntu1.2 [424 kB]

Fetched 24.5 MB in 4s (5,945 kB/s)

Selecting previously unselected package libgo5:amd64.

(Reading database ... 202536 files and directories currently installed.)

Preparing to unpack .../libgo5_4.9.3-0ubuntu4_amd64.deb ...

Unpacking libgo5:amd64 (4.9.3-0ubuntu4) ...

Selecting previously unselected package gccgo-4.9.

Preparing to unpack .../gccgo-4.9_4.9.3-0ubuntu4_amd64.deb ...

Unpacking gccgo-4.9 (4.9.3-0ubuntu4) ...

Selecting previously unselected package gccgo.

Preparing to unpack .../gccgo_4%3a4.9-1ubuntu6_amd64.deb ...

Unpacking gccgo (4:4.9-1ubuntu6) ...

Selecting previously unselected package gccgo-go.

Preparing to unpack .../gccgo-go_1.2.1-0ubuntu1.2_amd64.deb ...

Unpacking gccgo-go (1.2.1-0ubuntu1.2) ...

Processing triggers for man-db (2.6.7.1-1ubuntu1) ...

Setting up libgo5:amd64 (4.9.3-0ubuntu4) ...

Setting up gccgo-4.9 (4.9.3-0ubuntu4) ...

Setting up gccgo (4:4.9-1ubuntu6) ...

Setting up gccgo-go (1.2.1-0ubuntu1.2) ...

update-alternatives: using /usr/bin/gccgo-go to provide /usr/bin/go (go) in auto mode

Processing triggers for libc-bin (2.19-0ubuntu6.9) ...


뭘 많이 받네 ;;

그럼 다시 

$ go get code.google.com/p/go-tour/gotour

Segmentation fault

헐.. 뭐 어쩌라고;; 

일단 고;;;go 라고 한번 해봄..뭔가 실행되긴 하네....

$go

Go is a tool for managing Go source code.


Usage:


go command [arguments]


The commands are:


    build       compile packages and dependencies

    clean       remove object files

    env         print Go environment information

    fix         run go tool fix on packages

    fmt         run gofmt on package sources

    get         download and install packages and dependencies

    install     compile and install packages and dependencies

    list        list packages

    run         compile and run Go program

    test        test packages

    tool        run specified go tool

    version     print Go version

    vet         run go tool vet on packages


Use "go help [command]" for more information about a command.


Additional help topics:


    c           calling between Go and C

    gopath      GOPATH environment variable

    importpath  import path syntax

    packages    description of package lists

    testflag    description of testing flags

    testfunc    description of testing functions


Use "go help [topic]" for more information about that topic.


$go version

go version xgcc (Ubuntu 4.9.3-0ubuntu4) 4.9.3 linux/amd64


흠..뭐 실행되는것 같긴한데...세그먼트 폴트 머지....ㅠㅠ

공부좀 더하고 계속..


man inet_pton

날짜가 2008년도 ㄷㄷㄷ

요즘은 자동 번역기 덕분에 약간? 도움이 된다. 아 예제 볼려고 카피 했는데 ...


INET_PTON(3)                                 Linux Programmer's Manual                                INET_PTON(3)

                                                          리눅스 프로그래머의 사용법



NAME

이름

       inet_pton - convert IPv4 and IPv6 addresses from text to binary form

                       - IPv4 와 IPv6 주소들을 텍스트에서 바이너리 형태-폼?으로 변경한다. 


SYNOPSIS

개요 - 뭐 이렇게 쓴다는 걸 알려줌. 아래 설명 잘 나옴...

       #include <arpa/inet.h>  //

       int inet_pton(int af, const char *src, void *dst);


DESCRIPTION

설명

       This  function converts the character string src into a network address structure in the af address family,

       then copies the network address structure to dst.  The af argument must be either AF_INET or  AF_INET6.

       이 펑션은 문자열 src를 af 주소 집단의 네트워크 주소 구조체로 변경하고, 그 네트워크 주소 구조체를 dst에 복사한다. 그 af 함수 인자는 반드시 AF_INET 혹은 AF_INET6 중 하나이어야만 한다.


       The following address families are currently supported:

       아래의 주소 집단들이 현재 지원되고 있다: 2008년도인데????ㄷㄷㄷ

       AF_INET

              src points to a character string containing  an  IPv4  network  address  in  dotted-decimal  format,

              "ddd.ddd.ddd.ddd",  where  ddd is a decimal number of up to three digits in the range 0 to 255.  The

              address is converted to a struct in_addr and copied to dst, which must be sizeof(struct in_addr) (4)

              bytes (32 bits) long.


       AF_INET6

              src  points to a character string containing an IPv6 network address.  The address is converted to a

              struct in6_addr and copied to dst, which must be sizeof(struct in6_addr) (16) bytes (128 bits) long.

              The allowed formats for IPv6 addresses follow these rules:


              1. The  preferred  format is x:x:x:x:x:x:x:x.  This form consists of eight hexadecimal numbers, each

                 of which expresses a 16-bit value (i.e., each x can be up to 4 hex digits).


              2. A series of contiguous zero values in the preferred format can be abbreviated to  ::.   Only  one

                 instance of :: can occur in an address.  For example, the loopback address 0:0:0:0:0:0:0:1 can be

                 abbreviated as ::1.  The wildcard address, consisting of all zeros, can be written as ::.


              3. An alternate format is useful for expressing IPv4-mapped IPv6 addresses.  This form is written as

                 x:x:x:x:x:x:d.d.d.d,  where  the  six leading xs are hexadecimal values that define the six most-

                 significant 16-bit pieces of the address (i.e., 96 bits), and the ds express a value  in  dotted-

                 decimal  notation  that defines the least significant 32 bits of the address.  An example of such

                 an address is ::FFFF:204.152.189.116.


              See RFC 2373 for further details on the representation of IPv6 addresses.

              IPv6 주소들의 포현에 대한 더 자세함은  RFC2373을 참조하시라.


RETURN VALUE 이게 중요함 ㅋ

       inet_pton() returns 1 on success (network address was successfully converted).  0 is returned if  src  does

       not contain a character string representing a valid network address in the specified address family.  If af

       does not contain a valid address family, -1 is returned and errno is set to EAFNOSUPPORT.

     뭐 성공하면 1,  0 일 경우는 올바른 주소를 전달해 줘, af가 이상한 값이면 -1

     1 나오면 되겠다..


CONFORMING TO 아래를 따른다나..뽀직수

       POSIX.1-2001.


NOTES : 노트 헉 그 노트 아님

       Unlike inet_aton(3) and inet_addr(3), inet_pton() supports IPv6 addresses.  On the other hand,  inet_pton()

       accepts  only  IPv4  addresses  in dotted-decimal notation, whereas inet_aton(3) and inet_addr(3) allow the

       more general numbers-and-dots notation (hexadecimal and  octal  number  formats,  and  formats  that  don't

       require  all  four bytes to be explicitly written).  For an interface that handles both IPv6 addresses, and

       IPv4 addresses in numbers-and-dots notation, see getaddrinfo(3).

 어쨌든 얘는 특이하게 IPv6를 지원한다네, inet_aton과 inet_addr은 아닌가봐.

 IPv6와 IPv4  수-점 표기하는  둘다 처리하는 인터페이스는 getaddrinfo를 봐.


BUGS : 뻐그들

       AF_INET6 does not recognize IPv4 addresses.  An explicit IPv4-mapped IPv6 address must be supplied  in  src instead.


EXAMPLE

       The program below demonstrates the use of inet_pton() and inet_ntop(3).  Here are some example runs:


           $ ./a.out i6 0:0:0:0:0:0:0:0

           ::

           $ ./a.out i6 1:0:0:0:0:0:0:8

           1::8

           $ ./a.out i6 0:0:0:0:0:FFFF:204.152.189.116

           ::ffff:204.152.189.116


   Program source


       #include <arpa/inet.h>

       #include <stdio.h>

       #include <stdlib.h>

       #include <string.h>


       int

       main(int argc, char *argv[])

       {

           unsigned char buf[sizeof(struct in6_addr)];

           int domain, s;

           char str[INET6_ADDRSTRLEN];


           if (argc != 3) {

               fprintf(stderr, "Usage: %s {i4|i6|<num>} string\n", argv[0]);

               exit(EXIT_FAILURE);

           }


           domain = (strcmp(argv[1], "i4") == 0) ? AF_INET :

                    (strcmp(argv[1], "i6") == 0) ? AF_INET6 : atoi(argv[1]);


           s = inet_pton(domain, argv[2], buf);

           if (s <= 0) {

               if (s == 0)

                   fprintf(stderr, "Not in presentation format");

               else

                   perror("inet_pton");

               exit(EXIT_FAILURE);

           }


           if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {

               perror("inet_ntop");

               exit(EXIT_FAILURE);

           }


           printf("%s\n", str);


           exit(EXIT_SUCCESS);

       }


SEE ALSO

       getaddrinfo(3), inet(3), inet_ntop(3)


COLOPHON

       This page is part of release 3.54 of the Linux man-pages project.  A description of the project, and infor‐

       mation about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/.




Linux                                               2008-06-18                                        INET_PTON(3)




ONVIF Device Manager v2.2.250

가볍고 괜찮은듯.

2013년 이후로 업데이트가 없네...

ONVIF도 이제 슬슬..식는건가..


axis꺼 접속하는 모냥..세로로 돌려놓음.







printf 쓸때 마다 워닝 나온다....


항상 자주 ...warning을 만들어 낸다...-_-;;;

잊어버리지 말자...!!!


%d     - int

%ld    - long

%lld   -  long long

%u     - unsigned

%lu    - unsigned long

%llu   - usnigned long long



끝....





링크 에러 남..


matroskadec.c:(.text+0x884): undefined reference to `BZ2_bzDecompressInit'

matroskadec.c:(.text+0x8d8): undefined reference to `BZ2_bzDecompress'

matroskadec.c:(.text+0x8f4): undefined reference to `BZ2_bzDecompressEnd'



-lbz2 추가로 해결...

faac-1.28$ ./configure --help

`configure' configures FAAC 1.28 to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help                  display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version                display version information and exit
  -q, --quiet, --silent      do not print `checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR                object code libraries [EPREFIX/lib]
  --includedir=DIR         C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/faac]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-drm            Digital Radio Mondiale support
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --disable-largefile     omit support for large files

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-mp4v2            compile libmp4v2

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CPP         C preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to <faac-dev@lists.sourceforge.net>.

+ Recent posts