I'm getting a segfault using libarchive when trying running an example from archive_write_new manpage.I step through the app and get the following stack when after the call to archive_write_header. I thought maybe the it was having issues with the file not existing but i opened the file before the archive_write_heaer call and it was there where not issues with that.
I'm getting a segfault using libarchive when trying running an example from archive_write_new manpage.I step through the app and get the following stack when after the call to archive_write_header. I thought maybe the it was having issues with the file not existing but i opened the file before the archive_write_heaer call and it was there where not issues with that.
Stack
Thread [1] (Suspended: Signal 'SIGSEGV' received. Description: Segmentation fault.)
3 wcsxfrm() 0x77c483b7
2 stricmp() 0x77c4627d
1 libarchive2!archive_write_open() 0x62594d4b
Code
int main () {
}
compile and link commands
g++ -O0 -g3 -Wall -c -fmessage-length=0 -otransfer\fileDownload.o ..\transfer\fileDownload.cpp
g++ -LC:\Program Files\GnuWin32\lib -LC:\lang_env\c\lib -oAutoloader.exe transfer\fileDownload.o main.o -llibarchive
if anyone has suggestions let me know