m*******n 发帖数: 103 | 1 Hello,
1. My gcc arguments are too long (>256), so when I put this long parameters
into command line, UNIX cannot accept the arguments after size 256. Anybody
know how to solve it?
2. When I use gcc to link two C++ files (A and B), I found one problem.
If I difine X's function body in A, the linking is OK.
However if I define X's function body in B, the linking reports "some
undefined symbols".
This problem says "the linking is relative to the order of definition".
How to avoid t | k**e 发帖数: 86 | 2
Add "\" at every line end
Declare the function name in a header file
【在 m*******n 的大作中提到】 : Hello, : 1. My gcc arguments are too long (>256), so when I put this long parameters : into command line, UNIX cannot accept the arguments after size 256. Anybody : know how to solve it? : 2. When I use gcc to link two C++ files (A and B), I found one problem. : If I difine X's function body in A, the linking is OK. : However if I define X's function body in B, the linking reports "some : undefined symbols". : This problem says "the linking is relative to the order of definition". : How to avoid t
|
|