Click here to Skip to main content
15,902,636 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SSL Project Pin
Albert Holguin1-Feb-12 4:21
professionalAlbert Holguin1-Feb-12 4:21 
GeneralRe: SSL Project Pin
Manfred Rudolf Bihy1-Feb-12 4:33
professionalManfred Rudolf Bihy1-Feb-12 4:33 
AnswerRe: SSL Project PinPopular
Manfred Rudolf Bihy1-Feb-12 2:48
professionalManfred Rudolf Bihy1-Feb-12 2:48 
GeneralRe: SSL Project Pin
Chris Meech1-Feb-12 7:46
Chris Meech1-Feb-12 7:46 
QuestionCFile writes garbage value Pin
Anu_Bala1-Feb-12 0:48
Anu_Bala1-Feb-12 0:48 
AnswerRe: CFile writes garbage value Pin
Jochen Arndt1-Feb-12 1:30
professionalJochen Arndt1-Feb-12 1:30 
AnswerRe: CFile writes garbage value Pin
CPallini1-Feb-12 2:03
mveCPallini1-Feb-12 2:03 
QuestionUndefined reference error while using libxl libraries for Excel usage Pin
Faez Shingeri31-Jan-12 20:21
Faez Shingeri31-Jan-12 20:21 
Hi,


I am using eclipse IDE with MinGw installed. I copied all the libxl C libraries into the C:\MinGw\include but when I try to compile the program, I get the below errors :

D:\Faez\Software & Download\ExcelFilePgm\Debug/../MyFirstExcelFile.c:14: undefined reference to `xlCreateBookCA'

D:\Faez\Software & Download\ExcelFilePgm\Debug/../MyFirstExcelFile.c:17: undefined reference to `xlBookAddSheetA'

D:\Faez\Software & Download\ExcelFilePgm\Debug/../MyFirstExcelFile.c:20: undefined reference to `xlSheetWriteStrA'

D:\Faez\Software & Download\ExcelFilePgm\Debug/../MyFirstExcelFile.c:21: undefined reference to `xlSheetWriteNumA'

D:\Faez\Software & Download\ExcelFilePgm\Debug/../MyFirstExcelFile.c:23: undefined reference to `xlBookSaveA'

D:\Faez\Software & Download\ExcelFilePgm\Debug/../MyFirstExcelFile.c:24: undefined reference to `xlBookReleaseA'

collect2: ld returned 1 exit status

Build error occurred, build is stopped

Time consumed: 515 ms.



Here is the program I am trying to compile:

#include <stdio.h>
#include <libxl.h>int main()
{
BookHandle book = xlCreateBook(); // xlCreateXMLBook()
if(book)
{
SheetHandle sheet = xlBookAddSheet(book, L"Sheet1", 0);
if(sheet)
{
xlSheetWriteStr(sheet, 2, 1, L"Hello, World !", NULL);
xlSheetWriteNum(sheet, 3, 1, 1000, NULL);
}
xlBookSave(book, L"example.xls");
xlBookRelease(book);
}
return 0;
}





Thanks,

Faez
AnswerRe: Undefined reference error while using libxl libraries for Excel usage Pin
Richard MacCutchan31-Jan-12 21:35
mveRichard MacCutchan31-Jan-12 21:35 
GeneralRe: Undefined reference error while using libxl libraries for Excel usage Pin
Faez Shingeri31-Jan-12 22:37
Faez Shingeri31-Jan-12 22:37 
AnswerRe: Undefined reference error while using libxl libraries for Excel usage Pin
Jochen Arndt31-Jan-12 21:36
professionalJochen Arndt31-Jan-12 21:36 
GeneralRe: Undefined reference error while using libxl libraries for Excel usage Pin
Faez Shingeri31-Jan-12 22:50
Faez Shingeri31-Jan-12 22:50 
GeneralRe: Undefined reference error while using libxl libraries for Excel usage Pin
Jochen Arndt31-Jan-12 23:03
professionalJochen Arndt31-Jan-12 23:03 
GeneralRe: Undefined reference error while using libxl libraries for Excel usage Pin
Faez Shingeri1-Feb-12 1:05
Faez Shingeri1-Feb-12 1:05 
GeneralRe: Undefined reference error while using libxl libraries for Excel usage Pin
Jochen Arndt1-Feb-12 1:22
professionalJochen Arndt1-Feb-12 1:22 
GeneralRe: Undefined reference error while using libxl libraries for Excel usage Pin
Faez Shingeri1-Feb-12 1:42
Faez Shingeri1-Feb-12 1:42 
QuestionRe: Undefined reference error while using libxl libraries for Excel usage Pin
Faez Shingeri2-Feb-12 22:29
Faez Shingeri2-Feb-12 22:29 
AnswerRe: Undefined reference error while using libxl libraries for Excel usage Pin
Jochen Arndt2-Feb-12 22:40
professionalJochen Arndt2-Feb-12 22:40 
GeneralRe: Undefined reference error while using libxl libraries for Excel usage Pin
Faez Shingeri5-Feb-12 20:59
Faez Shingeri5-Feb-12 20:59 
GeneralRe: Undefined reference error while using libxl libraries for Excel usage Pin
Jochen Arndt5-Feb-12 22:37
professionalJochen Arndt5-Feb-12 22:37 
GeneralRe: Undefined reference error while using libxl libraries for Excel usage Pin
Faez Shingeri6-Feb-12 0:55
Faez Shingeri6-Feb-12 0:55 
GeneralRe: Undefined reference error while using libxl libraries for Excel usage Pin
Jochen Arndt6-Feb-12 1:18
professionalJochen Arndt6-Feb-12 1:18 
GeneralRe: Undefined reference error while using libxl libraries for Excel usage Pin
Faez Shingeri7-Feb-12 1:31
Faez Shingeri7-Feb-12 1:31 
GeneralRe: Undefined reference error while using libxl libraries for Excel usage Pin
Jochen Arndt7-Feb-12 1:51
professionalJochen Arndt7-Feb-12 1:51 
QuestionMessage Removed Pin
8-Feb-12 21:51
Faez Shingeri8-Feb-12 21:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.