시간이 10시6분34초 인 경우

=TEXT("10:06:34","[s]")

 

excel B2 시간에서 B1 시간을 빼서 초로 변환하는 경우

=TEXT(B2-B1,"[s]")

 

 

Posted by 천연사이다

MAC XQuartz 를 이용하여 OpenGL 라이브러리 사용 시 오류가 발생하면

터미널을 열어서 [해결방법]을 실행 후 다시 ssh 연결 


[해결 방법]

$ defaults write org.macosforge.xquartz.X11 enable_iglx -bool true


[오류 내용]

Gdk-ERROR **: The program '<PROGRAM>' received an X Window System error.

This probably reflects a bug in the program.

The error was '<SOME_ERROR>'.

 (Details: serial <AA> error_code <B> request_code <CC> minor_code <D>)

 (Note to programmers: normally, X errors are reported asynchronously;

  that is, you will receive the error a while after causing it.

   To debug your program, run it with the --sync command line

  option to change this behavior. You can then get a meaningful

  backtrace from your debugger if you break on the gdk_x_error() function.)


Posted by 천연사이다

./configure --prefix=/apps/common/antlr/2.7.7

make

make install


[오류 내용]

In file included from /apps/wa/build/common/antlr-2.7.7/lib/cpp/src/../../../lib/cpp/src/CharScanner.cpp:10:0:

/apps/wa/build/common/antlr-2.7.7/scripts/../lib/cpp/antlr/CharScanner.hpp:474:30: error: ‘EOF’ was not declared in this scope

  static const int EOF_CHAR = EOF;

                              ^

/apps/wa/build/common/antlr-2.7.7/scripts/../lib/cpp/antlr/CharScanner.hpp: In member function ‘bool antlr::CharScannerLiteralsLess::operator()(const string&, const string&) const’:

/apps/wa/build/common/antlr-2.7.7/scripts/../lib/cpp/antlr/CharScanner.hpp:565:41: error: ‘strcasecmp’ was not declared in this scope

   return (strcasecmp(x.c_str(),y.c_str())<0);

                                         ^


xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

                      >> E R R O R <<

============================================================


g++ -O2 -DNDEBUG -felide-constructors -pipe -c  -I . -I /apps/wa/build/common/antlr-2.7.7/scripts/../lib/cpp /apps/wa/build/common/antlr-2.7.7/lib/cpp/src/../../../lib/cpp/src/CharScanner.cpp

 

vi lib/cpp/antlr/CharScanner.hpp

[변경 전]

#include <antlr/config.hpp>


[변경 후]

#include <fstream>

#include <strings.h>  

#include <antlr/config.hpp>

#ifndef EOF

    #define EOF     std::ifstream::traits_type::eof()

#endif

Posted by 천연사이다

블로그 이미지
공부 기록
천연사이다

공지사항

Yesterday
Today
Total

달력

 « |  » 2024.5
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함