[BUG] Fixed error relating importing of Header file at data_structures/array/carray.c #72

Closed
opened 2026-01-29 15:02:38 +00:00 by claunia · 4 comments
Owner

Originally created by @Suraj-Patro on GitHub (Oct 30, 2020).

Description

Fixed error relating importing of Header file at data_structures/array/carray.c

Expected Behavior

code should compile and execute

Actual Behavior

code throughs error on compilation

Possible Fix

include the custom header file with proper name

Steps to Reproduce

compile and execute

Context

Originally created by @Suraj-Patro on GitHub (Oct 30, 2020). <!--- Provide a general summary of the issue in the Title above --> ## Description <!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug --> Fixed error relating importing of Header file at data_structures/array/carray.c ## Expected Behavior <!--- Tell us what should happen --> code should compile and execute ## Actual Behavior <!--- Tell us what happens instead --> code throughs error on compilation ## Possible Fix <!--- Not obligatory, but suggest a fix or reason for the bug --> include the custom header file with proper name ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> compile and execute ## Context <!--- How has this bug affected you? What were you trying to accomplish? -->
claunia added the bug label 2026-01-29 15:02:38 +00:00
Author
Owner

@RavishankarreddyB commented on GitHub (Jan 14, 2021):

Hi @Suraj-Patro , I'm interested in fixing this.
I've few questions -

  • I'm getting a warning (not error) when trying to compile the carray.c file regarding the name of the header file. Are you referring to that or some other thing ?
gcc carray.c -c
carray.c:29:10: warning: non-portable path to file '"carray.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#include "CArray.h"
         ^~~~~~~~~~
         "carray.h"
1 warning generated.
  • Same question for the carray_tests.c file as well.
@RavishankarreddyB commented on GitHub (Jan 14, 2021): Hi @Suraj-Patro , I'm interested in fixing this. I've few questions - - I'm getting a warning (**not error**) when trying to compile the carray.c file regarding the name of the header file. Are you referring to that or some other thing ? ``` gcc carray.c -c carray.c:29:10: warning: non-portable path to file '"carray.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path] #include "CArray.h" ^~~~~~~~~~ "carray.h" 1 warning generated. ``` - Same question for the carray_tests.c file as well.
Author
Owner

@Suraj-Patro commented on GitHub (Jan 24, 2021):

Same here.
It does generate a warning.
On execution, it results into a runtime error. because of the mis-spelled file name.

@Suraj-Patro commented on GitHub (Jan 24, 2021): Same here. It does generate a warning. On execution, it results into a runtime error. because of the mis-spelled file name.
Author
Owner

@RavishankarreddyB commented on GitHub (Jan 24, 2021):

@Suraj-Patro , So is the fix just changing to proper file name or anything else ?

@RavishankarreddyB commented on GitHub (Jan 24, 2021): @Suraj-Patro , So is the fix just changing to proper file name or anything else ?
Author
Owner

@Suraj-Patro commented on GitHub (Jan 25, 2021):

Its about changing code of the header file included at the "#include preprocessor directive" in the data_structures/array/carray.c
pertaining to the mis-spelled file name "CArray.h" to "carray.h".

@Suraj-Patro commented on GitHub (Jan 25, 2021): Its about changing code of the header file included at the "#include preprocessor directive" in the data_structures/array/carray.c pertaining to the mis-spelled file name "CArray.h" to "carray.h".
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#72