Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
D

David Wong RZ

@David Wong RZ
About
Posts
6
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • g++ compiling paramter -static on Solaris sparc
    D David Wong RZ

    Sorry, I google it, finally find the static linking on Solaris 10 was removed. Now, I need to think changing to a linux server. Thank you sir.

    no cross no crown.

    C / C++ / MFC help c++ mysql question

  • g++ compiling paramter -static on Solaris sparc
    D David Wong RZ

    Stuart Dootson wrote:

    g++ should be able to find libc and libm

    You mean that I need add the path include the libc&libm into system environment? When I use -lm parameter it works, isn't -lm says g++ compiler is using the math library compiling code, namely the libm? But with a -static will occur that error.I confused that a little.

    Stuart Dootson wrote:

    Are you sure Solaris supports static linking

    I think the -static is belong to g++ and independence of platform(solaris/fedora..), but I am too new one to confirm this. I guess it due to a library g++ can't find. The key is that I try writting a program about online judge program(some thing like ACM), it did not work well without the -static parameter while compiling period. I have to compile like this: g++ %s/%d.cpp -o %s/%d -ansi -fno-asm -Wall -lm -DONLINE_JUDGE --static 2> %s/%d.txt I am very need your suggestions, thanks for your time! :)

    no cross no crown.

    C / C++ / MFC help c++ mysql question

  • g++ compiling paramter -static on Solaris sparc
    D David Wong RZ

    Hello, everyone Recently I use g++ to compile cpp files with a -static paramter, and I got an compiler error as below: /homes/judge/source/31.cpp:7:2: warning: no newline at end of file ld: fatal: library -lm: not found ld: fatal: library -lc: not found ld: fatal: library -lc: not found ld: fatal: File processing errors. No output written to /homes/judge/exe/4090 collect2: ld returned 1 exit status I guess may be it happened by problem of system environment, the /etc/profile list out here: MANPATH=$MANPATH:/usr/local/man LD_LIBRARY_PATH=/usr/local/lib:/usr/lib/ld:/usr/lib LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/export/home/mysql/mysql-5.1.32/lib CC=gcc export LD_LIBRARY_PATH export CC export MANPATH JAVA_HOME=/Desktop/jdk1.6.0_12 CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib export CLASSPATH CATALINA_BASE=/usr/local/tomcat CATALINA_HOME=/usr/local/tomcat PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin:$CATALINA_HOME/bin:/usr/sfw/bin:/usr/local/bin:/usr/bin:/usr/ccs/bin:/sur/sbin export PATH Any suggestion for this problem? Thanks in advance!

    no cross no crown.

    C / C++ / MFC help c++ mysql question

  • Is there a way to control a process in memory?
    D David Wong RZ

    For more details and orderliness,here gives items to show what I want a program A could do these: 1.Supervise how much memory the program B consumed.If the program B was running and allocated memory exceeded the speciafied number,then report back to screen. 2.Restrict the priority of accessing the files out of its directory/folder to program B.Avoid running the dangerous code like system("reboot") from programs. 3.Kill the Process B if there includes any code lead to never finish running.e.g while(1){}.Of course,if a legal program run out time will be also killed. 4.How can I capture these above return messages,e.g Runtime error,stack overflow,Memory Limit Exceed.So much information just for users. Note:This is very similar to a online judge system. Thanks In Advance.

    no cross no crown.

    Java question data-structures performance help learning

  • How can I use a c++ program to compile a source code file?
    D David Wong RZ

    as the topic,and also I want to get the Expection infomation if an exception threw out when compiling a source file,e.g stack overflow.There will be much information the program can catch. how could I carry out this?any one can help me? thanks in advance.

    no cross no crown.

    C / C++ / MFC question c++ data-structures help

  • how can i compile c/c++ code with java?
    D David Wong RZ

    I want to use java for compiling c/c++ code,and the compiled infomation should be caught,e.g overflow...Is there a way to carry out this?I used getRuntime().exec("gcc .c -o .exe"),on this condition there was no information from compiling time. How can i use java to control that one executable program(e.g .exe) not to access the files out of this folder/directory,and assure the program not to performance anything in high-risk command like system("reboot") or while(1) fork();Is that possible for java? If c/c++ could be better to do this,welcome as well. thanks so much!!!:confused::confused::confused::cool:

    no cross no crown.

    Java question c++ java performance
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups