User Profile

Collapse

Profile Sidebar

Collapse
shailesh333
shailesh333
Last Activity: Aug 29 '12, 10:41 AM
Joined: Aug 21 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Easy way to Compile old g++ 2,95.3 code with newer g++ 3.4

    I have some piece of code compiled earlier with g++ 2.95.3. When I try to compile the code in new g++ version 3.4.3, the compilation fails with error
    "error: invalid in-class initialization of static data member of non-integral type `const char* const'".
    I recognize the problem. I have header files with variables initialized inside the class definition. When I move the variable initialization to class constructor, it compiles...
    See more | Go to post

  • shailesh333
    started a topic Clearing space in a particular fie system.

    Clearing space in a particular fie system.

    Hi
    I am running some tests on solaris 5.8, and I need to run it for min 30 days. However "df -k ."m shows disk usage as 98%. I clear all logs using "cat /dev/null > log_file" , still the disk usage shows 98 %. The test has been running for 15 day now. Please suggest how I can find other files/dir which are eating into my current file system

    Thanks in advance
    See more | Go to post

  • For a non-root user, how do I find packages installed in solaris.

    I am using Solaris 5.8 at work, and I do not have admin privileges. I wanted to know how can i find out what packages are installed. For example, if I want to find the vim package and if the version I am looking for is not in my "PATH".
    See more | Go to post

  • shailesh333
    replied to writing a simple server in c for windows
    in C
    Thanks guys,
    i fixed the issue.
    To compile the code i needed to link winsock32 lin.
    I used the option "-lwsock32" , (without quotes) in the compile options.
    See more | Go to post

    Leave a comment:


  • shailesh333
    started a topic socket() returns -1
    in C

    socket() returns -1

    I have written a small piece of code in 'c' for a simple server
    However when I call the socket function , it returns the value -1.
    What could be the problem??

    Any help will be appreciated... Thanks in advance.

    I am using dev c++ as my IDE, and running the code in windows platform
    The code is as follows:

    Code:
    #include<stdio.h>
    //#include <ws2tcpip.h>
    #include <winsock2.h>
    ...
    See more | Go to post

  • shailesh333
    replied to writing a simple server in c for windows
    in C
    Hi
    Thanks for the reply.
    I checked the compile options in dev c++ and looked for the libraries... it includes the folder dev/lib which has all the ".a" files including libws2_32.a.
    So I guess the issue you mentioned may not be the cause for the problem.
    See more | Go to post

    Leave a comment:


  • shailesh333
    started a topic writing a simple server in c for windows
    in C

    writing a simple server in c for windows

    Code:
    #include <stdio.h>
    #include <string.h>
    #include <unistd.h>
    #include <sys/types.h>
    #include <Winsock2.h>
    #include <stdlib.h>
    
    #define PORTNUM 2343
    
    int main(int argc, char *argv[])
    {
        char msg[] = "Hello World !\n";
     
        struct sockaddr_in dest; /* socket info about the machine connecting to us */
    ...
    See more | Go to post

  • shailesh333
    started a topic How to add .class files to existing project
    in Java

    How to add .class files to existing project

    Hi all,
    I would like to know , how to add a '.class' file to an existing project in netbeans.
    Any help will be greatly appreciated.
    Thanks in advance.
    See more | Go to post

  • shailesh333
    started a topic How do I generate xml from a simple xsd file.
    in Java

    How do I generate xml from a simple xsd file.

    I have a simple xsd file with me.
    How do I create xml instance of this xsd file.
    See more | Go to post

  • shailesh333
    started a topic Reading tsv files in java
    in Java

    Reading tsv files in java

    Hi all,
    Could anyone tell me , how I can read ".tsv" files in Java.
    Earlier the same module required me to use files of type "xls". I was able to find
    an api "JExcelApi" which mae it very easy to read cell values by row and column index. I now need to convert same file into a ".tsv" file and read it.
    Any help will be greatly appreciated.
    Thank you in advance...
    See more | Go to post
No activity results to display
Show More
Working...