Professional Web Applications Themes

how can I use gcc to compile program first compiled on 3.2v4.2 dev system? - SCO

On Thu, 10 Jul 2003 21:18:09 GMT, "Steve M. Fabac, Jr." <smfabacatt.net> wrote: >I am investigating moving a client from 3.2v4.2 to SCO 5.0.6 but am having >problems with gcc on 5.0.6 when trying to compile on of the client's application. > >First, I'm no programmer. If I can type "cc program.c" and get an a.out that will >run I'm happy. There are no notes or make files on the client's 3.2v4.2 system. >when I type: gcc -I /usr/informix/incl swlsvr.c > >I get: > >sqlsvr.ec: In function `main': >sqlsvr.ec:133: `errno' undeclared (first use in this function) >sqlsvr.ec:133: (Each undeclared identifier ...

  1. #1

    Default Re: how can I use gcc to compile program first compiled on 3.2v4.2 dev system?

    On Thu, 10 Jul 2003 21:18:09 GMT, "Steve M. Fabac, Jr."
    <smfabacatt.net> wrote:
    >I am investigating moving a client from 3.2v4.2 to SCO 5.0.6 but am having
    >problems with gcc on 5.0.6 when trying to compile on of the client's application.
    >
    >First, I'm no programmer. If I can type "cc program.c" and get an a.out that will
    >run I'm happy. There are no notes or make files on the client's 3.2v4.2 system.
    >when I type: gcc -I /usr/informix/incl swlsvr.c
    >
    >I get:
    >
    >sqlsvr.ec: In function `main':
    >sqlsvr.ec:133: `errno' undeclared (first use in this function)
    >sqlsvr.ec:133: (Each undeclared identifier is reported only once
    >sqlsvr.ec:133: for each function it appears in.)
    >sqlsvr.ec:210: warning: assignment makes pointer from integer without a cast
    >sqlsvr.ec:235: warning: assignment makes pointer from integer without a cast
    >sqlsvr.ec:235: warning: assignment makes pointer from integer without a cast
    >sqlsvr.ec:236: warning: assignment makes pointer from integer without a cast
    >sqlsvr.ec:239: syntax error before `_FS0'
    >sqlsvr.ec:239: warning: assignment makes pointer from integer without a cast
    >sqlsvr.ec:239: `_FS0' undeclared (first use in this function)
    >sqlsvr.ec:276: warning: assignment makes pointer from integer without a cast
    >sqlsvr.ec:277: warning: assignment makes pointer from integer without a cast
    >sqlsvr.ec:278: warning: assignment makes pointer from integer without a cast
    >sqlsvr.ec:283: p error before `else'
    >sqlsvr.ec: At top level:
    >sqlsvr.ec:287: p error before `void'
    >sqlsvr.ec:318: warning: parameter names (without types) in function declaration
    >sqlsvr.ec:318: warning: data definition has no type or storage class
    >sqlsvr.ec:319: p error before `('
    >sqlsvr.ec:321: warning: parameter names (without types) in function declaration
    >sqlsvr.ec:321: conflicting types for `free'
    >/usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2/include/stdlib.h:118: previous
    > declaration of `free'
    >sqlsvr.ec:321: warning: data definition has no type or storage class
    >sqlsvr.ec:322: p error before `return'
    >
    >I have searched google and groups.google for gcc compiler switches to
    >support old style c but have come up empty.
    >
    >Any suggestions?

    Is this .c code for SCO use ?

    In normal cirstances executables would be created with "make" to
    link librarys with the code.


    Stefan Marquardt Guest

  2. #2

    Default Re: how can I use gcc to compile program first compiled on 3.2v4.2 dev system?

    "Steve M. Fabac, Jr." <smfabacatt.net> wrote in message news:<3F0DD810.53A211ABatt.net>...
    > I am investigating moving a client from 3.2v4.2 to SCO 5.0.6 but am having
    > problems with gcc on 5.0.6 when trying to compile on of the client's application.
    >
    > First, I'm no programmer. [...]
    >
    > Any suggestions?
    Yes, hire a programmer. Porting applications between OSes, compilers,
    or even versions of OSes and compilers is usually a non-trivial task.
    It probably won't take that long to do for someone who knows what
    they are doing; but it will take a non-programmer a good amount of
    fumbling around to get it going, with no assurance that it is really
    working in the end.

    Jonathan Schilling
    J. L. Schilling Guest

Similar Threads

  1. Replies: 0
    Last Post: November 19th, 09:06 AM
  2. Replies: 2
    Last Post: February 27th, 08:34 AM
  3. Replies: 2
    Last Post: September 7th, 05:23 PM
  4. Compile Error: System.Xml.Serialization.dll
    By Paul P in forum ASP.NET Web Services
    Replies: 2
    Last Post: July 28th, 09:58 PM
  5. Replies: 0
    Last Post: July 17th, 06:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139