Search:

Type: Posts; User: rstanley

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. No, you should not "expect" that. ar...

    No, you should not "expect" that. ar, is used to create the static or shared library, ld, the linker, usually called by gcc, is used to link the existing shared or static library to the object...
  2. Yes, gcc and ar can be used to create static...

    Yes, gcc and ar can be used to create static libraries! Hello GOOGLE!

    You use gcc to create the .o files, ar to build the library, and make to drive both.
  3. Replies
    17
    Views
    447

    On Linux: gcc -std=c18 -Wall -Wextra...

    On Linux:

    gcc -std=c18 -Wall -Wextra -Wpedantic -g -I . -o arraycheck arraycheck.c
  4. Replies
    17
    Views
    447

    You should always capture the return value from...

    You should always capture the return value from fscanf() and scanf() to insure that data was input,

    thmm, your line numbers might not match the line numbers in his latest code. Try compiling with...
  5. Replies
    17
    Views
    447

    First of all, please look at lines 122 & 123,...

    First of all, please look at lines 122 & 123, followed by a block. Is this correct?
    Second, I am not that familiar with image processing so I might yield to someone that is more familiar with the...
  6. Replies
    17
    Views
    447

    Now post your revised code so we can look at the...

    Now post your revised code so we can look at the remaining errors.
  7. Replies
    17
    Views
    447

    I don't use any IDE, especially anything from...

    I don't use any IDE, especially anything from Mickey$oft, but look at this link. If this does not work do a Google search for the version you are using, and/or any online manual for Visual Studio.
  8. Replies
    17
    Views
    447

    You first need to increase your warning level to...

    You first need to increase your warning level to the highest level in the compiler, then fix some of the errors before the ones you posted earlier:

    arraycheck.c: In function ‘headercheck’:...
  9. Replies
    17
    Views
    447

    Once again you have posted a fuzzy image rather...

    Once again you have posted a fuzzy image rather than using [CODE] blocks as is required here.

    Also, you have posted the error messages but not the actual code. Impossible to give you a proper...
  10. Replies
    17
    Views
    447

    Your image cannot be opened. Please post the...

    Your image cannot be opened. Please post the code in [CODE] blocks.
  11. Have you tried to use vlagrind...

    Have you tried to use vlagrind to detect any memory errors? You can write errors and warnings to a log file to examine after the program ends.
  12. I too do not use a Raspberry Pi system, don't...

    I too do not use a Raspberry Pi system, don't know what O/S you are using, nor do I know why it should be ending after 15 minutes. Is there some power setting in the O/S that puts the O/S in sleep...
  13. Post a full program that fails, using your code,...

    Post a full program that fails, using your code, and let us know what compiler you are using.
  14. You haven't provided the entire program. You...

    You haven't provided the entire program. You don't need to open and close the file each time you run the loop. tdif is a long int, NOT a float.

    Try my version, which works on Linux with gcc, and...
  15. strtok()...

    strtok() or write your own function using strtok() to split a more complex path.
  16. Replies
    4
    Views
    303

    ZeenX1: Yes, this could be done with an array...

    ZeenX1:

    Yes, this could be done with an array to hold the entries. One function to input the values into the array, then a second to calculate the average of all the values, both called from...
  17. Replies
    10
    Views
    432

    Experienced programmers can "Break the rules" so...

    Experienced programmers can "Break the rules" so to speak. They know exactly what they are doing. Look at the number of "goto"s in the Linux kernel source! We usually teach beginners to avoid...
  18. Replies
    4
    Views
    303

    Try this based on your code: #include...

    Try this based on your code:

    #include <stdio.h>

    // Please don't use "Magic Numbers"! Use a #define
    #define DIM 5

    // Make the average calculating function more generic
    int somefunction(int...
  19. Replies
    10
    Views
    432

    Yes, I understand in this case, but I recommend...

    Yes, I understand in this case, but I recommend no beginner user start a for loop that way! Better to set "smallest" to the first element, and scan the entire array anyway.
  20. Replies
    10
    Views
    432

    john.c: Except that your minimal correction...

    john.c:

    Except that your minimal correction still skips the first element of the array:

    for (int i = 0; i < 9; i++)

    NOT

    for (int i = 1; i < 9; i++)
  21. Replies
    10
    Views
    432

    Please compare this version to yours: #include...

    Please compare this version to yours:

    #include <stdio.h>

    // Avoid "Magic Numbers" Use a #define instead!
    #define DIM 9

    // The function should do one thing, and one thing only
    int...
  22. Replies
    25
    Views
    2,064

    My functions were written a couple of years ago...

    My functions were written a couple of years ago to display the actual bit pattern of various data types, irregardless of signed or unsigned variables. Primarily for checking my code using bit masks,...
  23. Replies
    25
    Views
    2,064

    leo2008: Even if the value -12 is being...

    leo2008:

    Even if the value -12 is being processed as a char, the output matches the LSB (Least Significant Byte) of the full integer, -12.

    Using a function I wrote to process:

    char ch = 12;...
  24. Replies
    25
    Views
    2,064

    The following change corrects the display of the...

    The following change corrects the display of the '1', but you still have issues:
    #include <stdio.h>
    #include <stdlib.h>
    #include <stdbool.h>

    void reverse(char output[], int len)
    {
    int...
  25. Replies
    9
    Views
    937

    That is the way Dennis Ritchie created the...

    That is the way Dennis Ritchie created the function. It cleans out the input buffer, for the next line to be input. Yes, you will need to deal with removing the newline if needed. No, there is any...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4