To use a library using src code without installing itUnit Testing C CodeWhat is “:-!!” in C code?Dereferencing pointer to incomplete type inside own libraryDivide a number by 3 without using *, /, +, -, % operatorsObfuscated C Code Contest 2006. Please explain sykes2.cmaximum number of files/directories handled by dirent structWhy with MSVC it works and with GNU come the error: array type has incomplete element type using structstruct dirent does not have de_type in header fileC Field has incomplete type, without forward declarationCompile c code using gcc without installing mingW/cygwin
Did 007 exist before James Bond?
What is the goal and toolset of philosophy?
Sending a photo of my bank account card to the future employer
Was all the fuel expended in each stage of a Saturn V launch?
Adobe Illustrator: how to reset viewing angle with Astute Graphics plugins installed?
Does the Intel 8085 CPU use real memory addresses?
Why did Steve Rogers choose this character in Endgame?
How to delete certain lists from a nested list?
Will a contempt of congress lawsuit actually reach the merits?
How could an animal "smell" carbon monoxide?
Do I need a 50/60Hz notch filter for battery powered devices?
What details should I consider before agreeing for part of my salary to be 'retained' by employer?
Foldable, multipart helicopter blades
Is there an English equivalent for "Les carottes sont cuites", while keeping the vegetable reference?
How to remove the first colon ':' from a timestamp?
Sankhara meditation
How to use function $_GET in Magento 2?
Why doesn't philosophy have higher standards for its arguments?
What does it mean to fail a saving throw by 5 or more?
Why is my calculation for added length of coax for a double cross antenna different to everyone else's?
Can you perfectly wrap a cube with this blocky shape?
If SWIFT is headquartered in Europe, why does the EU need to create a SWIFT alternative to be able to do transactions with Iran?
What powers the air required for pneumatic brakes in aircraft?
Is this artwork (used in a video game) real?
To use a library using src code without installing it
Unit Testing C CodeWhat is “:-!!” in C code?Dereferencing pointer to incomplete type inside own libraryDivide a number by 3 without using *, /, +, -, % operatorsObfuscated C Code Contest 2006. Please explain sykes2.cmaximum number of files/directories handled by dirent structWhy with MSVC it works and with GNU come the error: array type has incomplete element type using structstruct dirent does not have de_type in header fileC Field has incomplete type, without forward declarationCompile c code using gcc without installing mingW/cygwin
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am trying to use a c library libpostal .But due to system restraints i cannot install the library.
I am able to set the data_dir using DLIBPOSTAL_DATA_DIR="/my/file/path".
This leads to the below error
abhiram@abhiram-Lenovo-G50-70:~/libpostal-master/src$ gcc -DLIBPOSTAL_DATA_DIR='"$/home/abhiram/libpostal-master/data"' -o main main.c libpostal.c file_utils.c string_utils.c json_encode.c -std=c99 -w
In file included from sparse_matrix.h:46:0,
from averaged_perceptron.h:27,
from address_parser.h:52,
from libpostal.c:10:
matrix.h:9:20: fatal error: config.h: No such file or directory
#include <config.h>
^
compilation terminated.
file_utils.c:42:6: error: conflicting types for ‘is_relative_path’
bool is_relative_path(struct dirent *ent) {
^
In file included from file_utils.c:1:0:
file_utils.h:59:6: note: previous declaration of ‘is_relative_path’ was here
bool is_relative_path(struct dirent *ent);
^
file_utils.c: In function ‘is_relative_path’:
file_utils.c:43:22: error: dereferencing pointer to incomplete type
return strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0;
^
file_utils.c:43:55: error: dereferencing pointer to incomplete type
return strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0;
^
I can only use the gcc compiler to run c code and also run python script i am trying to use the source code instead of the library.
I cant build the file or even run configure due to not having the permission at my target location i need to create a package which i can paste at a location and run directly without any other dependencies.
I am working on my on system curently where i have all permission but i need to create a package which will be used on a system by user without any access permissions and ./configure make cannot be used due to permission denied.
c build
|
show 7 more comments
I am trying to use a c library libpostal .But due to system restraints i cannot install the library.
I am able to set the data_dir using DLIBPOSTAL_DATA_DIR="/my/file/path".
This leads to the below error
abhiram@abhiram-Lenovo-G50-70:~/libpostal-master/src$ gcc -DLIBPOSTAL_DATA_DIR='"$/home/abhiram/libpostal-master/data"' -o main main.c libpostal.c file_utils.c string_utils.c json_encode.c -std=c99 -w
In file included from sparse_matrix.h:46:0,
from averaged_perceptron.h:27,
from address_parser.h:52,
from libpostal.c:10:
matrix.h:9:20: fatal error: config.h: No such file or directory
#include <config.h>
^
compilation terminated.
file_utils.c:42:6: error: conflicting types for ‘is_relative_path’
bool is_relative_path(struct dirent *ent) {
^
In file included from file_utils.c:1:0:
file_utils.h:59:6: note: previous declaration of ‘is_relative_path’ was here
bool is_relative_path(struct dirent *ent);
^
file_utils.c: In function ‘is_relative_path’:
file_utils.c:43:22: error: dereferencing pointer to incomplete type
return strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0;
^
file_utils.c:43:55: error: dereferencing pointer to incomplete type
return strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0;
^
I can only use the gcc compiler to run c code and also run python script i am trying to use the source code instead of the library.
I cant build the file or even run configure due to not having the permission at my target location i need to create a package which i can paste at a location and run directly without any other dependencies.
I am working on my on system curently where i have all permission but i need to create a package which will be used on a system by user without any access permissions and ./configure make cannot be used due to permission denied.
c build
check the makefile for what it does
– Antti Haapala
Mar 26 at 8:13
Please edit your question to show the build commands or theMakefileyou use to build the program that is supposed to uselibpostal. You could installlibpostalto a directory below your HOME directory and specify this as a library localtion (-L library_dir). The build oflibpostalseems to use aconfigurescript. Runconfigure --helpto see which settings you can modify. Maybe there is an option forlibpostal_data_diror its parent directory. There might be some options--with-somethingor--enable-something...
– Bodo
Mar 26 at 8:22
Thanks @AnttiHaapala it got cleared in the makefile
– Abhiram
Mar 26 at 8:33
@Bodo I have edited the question. My problem is i cant run configure at target location i need to run this directly without building anything at target location
– Abhiram
Mar 26 at 8:35
1
Then build a static library on your build system and link your program with the static library. If you don't copy and paste the entered command with the error message and what you get asked for it is difficult to give useful answers. If you don't have the permission to execute a shell scriptconfigure, can you execute a binary program you copy to the target system?
– Bodo
Mar 26 at 12:15
|
show 7 more comments
I am trying to use a c library libpostal .But due to system restraints i cannot install the library.
I am able to set the data_dir using DLIBPOSTAL_DATA_DIR="/my/file/path".
This leads to the below error
abhiram@abhiram-Lenovo-G50-70:~/libpostal-master/src$ gcc -DLIBPOSTAL_DATA_DIR='"$/home/abhiram/libpostal-master/data"' -o main main.c libpostal.c file_utils.c string_utils.c json_encode.c -std=c99 -w
In file included from sparse_matrix.h:46:0,
from averaged_perceptron.h:27,
from address_parser.h:52,
from libpostal.c:10:
matrix.h:9:20: fatal error: config.h: No such file or directory
#include <config.h>
^
compilation terminated.
file_utils.c:42:6: error: conflicting types for ‘is_relative_path’
bool is_relative_path(struct dirent *ent) {
^
In file included from file_utils.c:1:0:
file_utils.h:59:6: note: previous declaration of ‘is_relative_path’ was here
bool is_relative_path(struct dirent *ent);
^
file_utils.c: In function ‘is_relative_path’:
file_utils.c:43:22: error: dereferencing pointer to incomplete type
return strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0;
^
file_utils.c:43:55: error: dereferencing pointer to incomplete type
return strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0;
^
I can only use the gcc compiler to run c code and also run python script i am trying to use the source code instead of the library.
I cant build the file or even run configure due to not having the permission at my target location i need to create a package which i can paste at a location and run directly without any other dependencies.
I am working on my on system curently where i have all permission but i need to create a package which will be used on a system by user without any access permissions and ./configure make cannot be used due to permission denied.
c build
I am trying to use a c library libpostal .But due to system restraints i cannot install the library.
I am able to set the data_dir using DLIBPOSTAL_DATA_DIR="/my/file/path".
This leads to the below error
abhiram@abhiram-Lenovo-G50-70:~/libpostal-master/src$ gcc -DLIBPOSTAL_DATA_DIR='"$/home/abhiram/libpostal-master/data"' -o main main.c libpostal.c file_utils.c string_utils.c json_encode.c -std=c99 -w
In file included from sparse_matrix.h:46:0,
from averaged_perceptron.h:27,
from address_parser.h:52,
from libpostal.c:10:
matrix.h:9:20: fatal error: config.h: No such file or directory
#include <config.h>
^
compilation terminated.
file_utils.c:42:6: error: conflicting types for ‘is_relative_path’
bool is_relative_path(struct dirent *ent) {
^
In file included from file_utils.c:1:0:
file_utils.h:59:6: note: previous declaration of ‘is_relative_path’ was here
bool is_relative_path(struct dirent *ent);
^
file_utils.c: In function ‘is_relative_path’:
file_utils.c:43:22: error: dereferencing pointer to incomplete type
return strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0;
^
file_utils.c:43:55: error: dereferencing pointer to incomplete type
return strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0;
^
I can only use the gcc compiler to run c code and also run python script i am trying to use the source code instead of the library.
I cant build the file or even run configure due to not having the permission at my target location i need to create a package which i can paste at a location and run directly without any other dependencies.
I am working on my on system curently where i have all permission but i need to create a package which will be used on a system by user without any access permissions and ./configure make cannot be used due to permission denied.
c build
c build
edited Mar 26 at 12:03
Abhiram
asked Mar 26 at 8:11
AbhiramAbhiram
217 bronze badges
217 bronze badges
check the makefile for what it does
– Antti Haapala
Mar 26 at 8:13
Please edit your question to show the build commands or theMakefileyou use to build the program that is supposed to uselibpostal. You could installlibpostalto a directory below your HOME directory and specify this as a library localtion (-L library_dir). The build oflibpostalseems to use aconfigurescript. Runconfigure --helpto see which settings you can modify. Maybe there is an option forlibpostal_data_diror its parent directory. There might be some options--with-somethingor--enable-something...
– Bodo
Mar 26 at 8:22
Thanks @AnttiHaapala it got cleared in the makefile
– Abhiram
Mar 26 at 8:33
@Bodo I have edited the question. My problem is i cant run configure at target location i need to run this directly without building anything at target location
– Abhiram
Mar 26 at 8:35
1
Then build a static library on your build system and link your program with the static library. If you don't copy and paste the entered command with the error message and what you get asked for it is difficult to give useful answers. If you don't have the permission to execute a shell scriptconfigure, can you execute a binary program you copy to the target system?
– Bodo
Mar 26 at 12:15
|
show 7 more comments
check the makefile for what it does
– Antti Haapala
Mar 26 at 8:13
Please edit your question to show the build commands or theMakefileyou use to build the program that is supposed to uselibpostal. You could installlibpostalto a directory below your HOME directory and specify this as a library localtion (-L library_dir). The build oflibpostalseems to use aconfigurescript. Runconfigure --helpto see which settings you can modify. Maybe there is an option forlibpostal_data_diror its parent directory. There might be some options--with-somethingor--enable-something...
– Bodo
Mar 26 at 8:22
Thanks @AnttiHaapala it got cleared in the makefile
– Abhiram
Mar 26 at 8:33
@Bodo I have edited the question. My problem is i cant run configure at target location i need to run this directly without building anything at target location
– Abhiram
Mar 26 at 8:35
1
Then build a static library on your build system and link your program with the static library. If you don't copy and paste the entered command with the error message and what you get asked for it is difficult to give useful answers. If you don't have the permission to execute a shell scriptconfigure, can you execute a binary program you copy to the target system?
– Bodo
Mar 26 at 12:15
check the makefile for what it does
– Antti Haapala
Mar 26 at 8:13
check the makefile for what it does
– Antti Haapala
Mar 26 at 8:13
Please edit your question to show the build commands or the
Makefile you use to build the program that is supposed to use libpostal. You could install libpostal to a directory below your HOME directory and specify this as a library localtion (-L library_dir). The build of libpostal seems to use a configure script. Run configure --help to see which settings you can modify. Maybe there is an option for libpostal_data_dir or its parent directory. There might be some options --with-something or --enable-something ...– Bodo
Mar 26 at 8:22
Please edit your question to show the build commands or the
Makefile you use to build the program that is supposed to use libpostal. You could install libpostal to a directory below your HOME directory and specify this as a library localtion (-L library_dir). The build of libpostal seems to use a configure script. Run configure --help to see which settings you can modify. Maybe there is an option for libpostal_data_dir or its parent directory. There might be some options --with-something or --enable-something ...– Bodo
Mar 26 at 8:22
Thanks @AnttiHaapala it got cleared in the makefile
– Abhiram
Mar 26 at 8:33
Thanks @AnttiHaapala it got cleared in the makefile
– Abhiram
Mar 26 at 8:33
@Bodo I have edited the question. My problem is i cant run configure at target location i need to run this directly without building anything at target location
– Abhiram
Mar 26 at 8:35
@Bodo I have edited the question. My problem is i cant run configure at target location i need to run this directly without building anything at target location
– Abhiram
Mar 26 at 8:35
1
1
Then build a static library on your build system and link your program with the static library. If you don't copy and paste the entered command with the error message and what you get asked for it is difficult to give useful answers. If you don't have the permission to execute a shell script
configure, can you execute a binary program you copy to the target system?– Bodo
Mar 26 at 12:15
Then build a static library on your build system and link your program with the static library. If you don't copy and paste the entered command with the error message and what you get asked for it is difficult to give useful answers. If you don't have the permission to execute a shell script
configure, can you execute a binary program you copy to the target system?– Bodo
Mar 26 at 12:15
|
show 7 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55352452%2fto-use-a-library-using-src-code-without-installing-it%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55352452%2fto-use-a-library-using-src-code-without-installing-it%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
check the makefile for what it does
– Antti Haapala
Mar 26 at 8:13
Please edit your question to show the build commands or the
Makefileyou use to build the program that is supposed to uselibpostal. You could installlibpostalto a directory below your HOME directory and specify this as a library localtion (-L library_dir). The build oflibpostalseems to use aconfigurescript. Runconfigure --helpto see which settings you can modify. Maybe there is an option forlibpostal_data_diror its parent directory. There might be some options--with-somethingor--enable-something...– Bodo
Mar 26 at 8:22
Thanks @AnttiHaapala it got cleared in the makefile
– Abhiram
Mar 26 at 8:33
@Bodo I have edited the question. My problem is i cant run configure at target location i need to run this directly without building anything at target location
– Abhiram
Mar 26 at 8:35
1
Then build a static library on your build system and link your program with the static library. If you don't copy and paste the entered command with the error message and what you get asked for it is difficult to give useful answers. If you don't have the permission to execute a shell script
configure, can you execute a binary program you copy to the target system?– Bodo
Mar 26 at 12:15