특정 실행 파일을 같이 포함시켜 컴파일 할 수 있나요?
글쓴이: jagalchee / 작성시간: 화, 2004/10/05 - 9:20오후
음..어떻게 질문을 드려야 될지 몰라서 예를 들어서 질문 드리겠습니다.
현재 제가 리눅스에서 C 를 사용해서 A라는 프로그램을 코딩중에 있습니다. 그런데 A에서 어떤 외부의 프로그램 B를 exec 함수를 이용해서 실행하는 부분이 사용됩니다. A를 모두 다 작성한후 컴파일 하면 A가 내부적으로 실행하는 프로그램 B는 A와 별도의 파일로 존재하는게 일반적이지요..
근데 저는 B프로그램을 A를 컴파일할 때 함께 포함시켜 버리고 싶습니다. 즉 A를 실행할려면 A와 B 둘다 필요한게 아니라 A만 있어도 실행이 가능하도록 하고 싶습니다.
방법이 없을까요?
Forums:
배포되어 설치후에도 파일이 하나이어야하고,컴파일 전에 B는 본인이 만
배포되어 설치후에도 파일이 하나이어야하고,
컴파일 전에 B는 본인이 만드는 게 아닌가 보죠?
거의 꽁수외에는 방법이 없습니다.
만일 A에서 B의 이미지를 디렉토리에 생성하고 실행한다면.. 그것은 정말.. 보안상 문제있는 방법으로 보이는 걸요?
---
http://coolengineer.com
댓글 달기