Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. rih5342

    RPC define types

    I'm not sure about compiling in.h. The syntax <="" a=""><b>IPPROTO_IP</b> is challenging. I have several versions of the library, most have includes that turn into rabbit holes. I just need the xdr rpc library to link with a SW project. It's just easier to include it rather than remove it...
  2. rih5342

    RPC define types

    I'm using W7-64 and cygwin gcc 6.3.1 Any hints for dealing with #define <a name="" C:\cygwin64\usr\local\bin\gcc.exe -Wextra -Wall -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wstrict-overflow=5 -Wwrite-strings -Waggregate-return -Wcast-qual...
  3. rih5342

    derived type constructors

    Got it, thank you.
  4. rih5342

    derived type constructors

    Hello, I'm using gcc 6.3 on w7-64, with these gfortran compile flags FLAGS = -std=f2008 -O2 -Wall -Wextra -fno-range-check Is this legal code? MODULE WAV integer, parameter :: int2 = selected_int_kind(2) integer, parameter :: int4 = selected_int_kind(4) integer, parameter...
  5. rih5342

    C Headers, part 3

    Thank you, tried that. Just to be clear, I'm using Windows7, GCC-5.2, and a MinGW msys-1.0 command window. I call success being able to download the source, execute ./configure, make, and make install, with no errors. I have attempted this with: fxdr_2.1c, glibc-2.23, portablexdr-4.91...
  6. rih5342

    C Headers, part 3

    Maybe that's my problem, I'm mixing windows and Linux. I'm using Windows7, GCC 5.2, MinGW command-line and make. Searching for information, I read somewhere that MinGW no longer includes some essential variable types, so this project has changed from a compile link and run to a minor rewrite...
  7. rih5342

    C Headers, part 3

    Making progress. Next error involves macros, and reviewing Kernigen and Ritchie 4.11.2 Macro Substitution A definition has the form #define name replacement text It calls for a macro substitution of the simplest kind-subsequent occurrences of the token name will be replaced by the replacement...
  8. rih5342

    C headers, part 2

    I'm using a combination of command-line and makefile, and Codeblocks.
  9. rih5342

    C headers, part 2

    Sometimes open source projects compile link and run effortlessly which motivates you to try another, like this project, which requires the xdr components from glibc. The source code is readily available but the headers account for half the code. It's convoluted because of all the ifdef...
  10. rih5342

    C headers, part 2

    Therefor in this case, since I have the source code, does it make sense to remove all the double underscores? Thank you.
  11. rih5342

    C headers, part 2

    Non-C programmer here. I'm using GCC and Gfortran V5.2 (which BTW self compiled perfectly), on Windows7(64). I'm getting this C error. rpc/types.h:78:9: error: unknown type name '__u_char' typedef __u_char u_char; What does the double underscore do, what does it mean? Thank you.
  12. rih5342

    c headers

    Great, makes sense, thank you.
  13. rih5342

    c headers

    Non C programer here. The headers at the top of a C function are my problem. From the "compiler/operating-system/effective" point of view, what's the difference between #include <rpc/xdr.h> #include "rpc/xdr.h" Both yield errors. The compiler can't find the directory in <> version. The...
  14. rih5342

    C language: error: cast from pointer to integer of different size

    I'm using Windows-7 64bit, with gcc V5.2, with MinGW, and trying to compile portablexdr-4.9.1 This piece of C static bool_t xdrmem_setpos(xdrs, pos) register XDR *xdrs; u_int pos; { register caddr_t newaddr = xdrs->x_base + pos; register caddr_t lastaddr = xdrs->x_private + xdrs->x_handy...
  15. rih5342

    Vertical tab in a Windows OS window

    Great, thank you, I'll check it out.
  16. rih5342

    Vertical tab in a Windows OS window

    gcc please, via make files.
  17. rih5342

    Vertical tab in a Windows OS window

    Thank you. Regarding Alternatively there are some windows routines to move the cursor to any point on the screen. To get me started, what are the names of these windows routines? Are they in the form of a dll requiring a multilanguage call from Fortran to C++ via interface statements?
  18. rih5342

    Vertical tab in a Windows OS window

    I'm running my program from a windowsOS command line window and outputting data and character strings to the same window. I can write non-advancing output and overwrite the same line via backspaces and writing again (on the same line). Is it possible, with Fortran, to do an upward vertical...
  19. rih5342

    Recreating a histogram from statistical moments

    Everyone, thank you, good input. Turns out this is called an Edgeworth series. The problem is full of challenges: a function made from moments may not be unique and may not yield a positive probability.
  20. rih5342

    Recreating a histogram from statistical moments

    There's alot of information available about generating moments from a histogram but I haven't found a clear example of using the statistical moments to approximate the original histogram. Is there a function that approximates a histogram from its statistical moments?

Part and Inventory Search