LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   .patch files (https://www.linuxquestions.org/questions/linux-newbie-8/patch-files-138312/)

true_atlantis 01-24-2004 10:36 PM

.patch files
 
i have a .patch file that is supposed to edit a .cpp file, but it gets an error.. i was just wondering how i would manually do the patch... what does each line mean in the file... here is the part that failes

2533c2566
< QTimer *m_sysTimer = new QTimer(this);
---
> m_sysTimer = new QTimer(this);

acid_kewpie 01-25-2004 07:58 AM

if you are in the SAME directory as the file you are patching, you wuold run something like

path -p0 < file.patch

the -p0 relates to the directory level you are in so 0 is the same directory.

if that doesn't work, or doesn't answer your question, please provide more information, as you've not really provided anything to go on. there is nothing abnormal about the section you have provided...


All times are GMT -5. The time now is 08:35 AM.