<?xml version="1.0" encoding="US-ASCII"?>  
<!-- Generated by iC(tm) - CompSci Interactive Converter - http://www.compsciresources.com -->     
<!-- Created: Fri Apr 29 19:30:30 UTC 2016 -->  
<linkbase xmlns="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:xbrldt="http://xbrl.org/2005/xbrldt">  
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_ConsolidatedBalanceSheet" roleURI="http://www.o2micro.com/role/ConsolidatedBalanceSheet"/>    
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_ConsolidatedBalanceSheet_Parentheticals" roleURI="http://www.o2micro.com/role/ConsolidatedBalanceSheet_Parentheticals"/>    
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_ConsolidatedIncomeStatement" roleURI="http://www.o2micro.com/role/ConsolidatedIncomeStatement"/>     
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_ShareholdersEquityType2or3" roleURI="http://www.o2micro.com/role/ShareholdersEquityType2or3"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_ShareholdersEquityType2or3_Parentheticals" roleURI="http://www.o2micro.com/role/ShareholdersEquityType2or3_Parentheticals"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_ConsolidatedCashFlow" roleURI="http://www.o2micro.com/role/ConsolidatedCashFlow"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note1General" roleURI="http://www.o2micro.com/role/Note1General"/>     
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note2SummaryofSignificantAccountingPolicies" roleURI="http://www.o2micro.com/role/Note2SummaryofSignificantAccountingPolicies"/>  
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note3DiscontinuedOperationsandExitActivities" roleURI="http://www.o2micro.com/role/Note3DiscontinuedOperationsandExitActivities"/>    
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note4FairValueMeasurements" roleURI="http://www.o2micro.com/role/Note4FairValueMeasurements"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note5CashandCashEquivalents" roleURI="http://www.o2micro.com/role/Note5CashandCashEquivalents"/>     
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note6ShorttermInvestments" roleURI="http://www.o2micro.com/role/Note6ShorttermInvestments"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note7Inventories" roleURI="http://www.o2micro.com/role/Note7Inventories"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note8PrepaidExpensesandOtherCurrentAssets" roleURI="http://www.o2micro.com/role/Note8PrepaidExpensesandOtherCurrentAssets"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note9LongtermInvestments" roleURI="http://www.o2micro.com/role/Note9LongtermInvestments"/>    
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note10PropertyandEquipmentNet" roleURI="http://www.o2micro.com/role/Note10PropertyandEquipmentNet"/>    
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note11OtherAssets" roleURI="http://www.o2micro.com/role/Note11OtherAssets"/>     
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note12AccruedExpensesandOtherCurrentLiabilities" roleURI="http://www.o2micro.com/role/Note12AccruedExpensesandOtherCurrentLiabilities"/>     
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note13IncomeTax" roleURI="http://www.o2micro.com/role/Note13IncomeTax"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note14RetirementandPensionPlans" roleURI="http://www.o2micro.com/role/Note14RetirementandPensionPlans"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note15StockbasedCompensation" roleURI="http://www.o2micro.com/role/Note15StockbasedCompensation"/>  
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note16EarningsLossPerShare" roleURI="http://www.o2micro.com/role/Note16EarningsLossPerShare"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note17Commitments" roleURI="http://www.o2micro.com/role/Note17Commitments"/>     
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note18Contingencies" roleURI="http://www.o2micro.com/role/Note18Contingencies"/>    
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note19FinancialInstruments" roleURI="http://www.o2micro.com/role/Note19FinancialInstruments"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note20SegmentInformation" roleURI="http://www.o2micro.com/role/Note20SegmentInformation"/>    
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_AccountingPoliciesByPolicy" roleURI="http://www.o2micro.com/role/AccountingPoliciesByPolicy"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note4FairValueMeasurementsTables" roleURI="http://www.o2micro.com/role/Note4FairValueMeasurementsTables"/>     
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note5CashandCashEquivalentsTables" roleURI="http://www.o2micro.com/role/Note5CashandCashEquivalentsTables"/>  
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note6ShorttermInvestmentsTables" roleURI="http://www.o2micro.com/role/Note6ShorttermInvestmentsTables"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note7InventoriesTables" roleURI="http://www.o2micro.com/role/Note7InventoriesTables"/>     
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note8PrepaidExpensesandOtherCurrentAssetsTables" roleURI="http://www.o2micro.com/role/Note8PrepaidExpensesandOtherCurrentAssetsTables"/>     
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note9LongtermInvestmentsTables" roleURI="http://www.o2micro.com/role/Note9LongtermInvestmentsTables"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note10PropertyandEquipmentNetTables" roleURI="http://www.o2micro.com/role/Note10PropertyandEquipmentNetTables"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note11OtherAssetsTables" roleURI="http://www.o2micro.com/role/Note11OtherAssetsTables"/>  
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note12AccruedExpensesandOtherCurrentLiabilitiesTables" roleURI="http://www.o2micro.com/role/Note12AccruedExpensesandOtherCurrentLiabilitiesTables"/>  
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note13IncomeTaxTables" roleURI="http://www.o2micro.com/role/Note13IncomeTaxTables"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note14RetirementandPensionPlansTables" roleURI="http://www.o2micro.com/role/Note14RetirementandPensionPlansTables"/>     
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note15StockbasedCompensationTables" roleURI="http://www.o2micro.com/role/Note15StockbasedCompensationTables"/>    
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note16EarningsLossPerShareTables" roleURI="http://www.o2micro.com/role/Note16EarningsLossPerShareTables"/>     
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note17CommitmentsTables" roleURI="http://www.o2micro.com/role/Note17CommitmentsTables"/>  
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note19FinancialInstrumentsTables" roleURI="http://www.o2micro.com/role/Note19FinancialInstrumentsTables"/>     
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note20SegmentInformationTables" roleURI="http://www.o2micro.com/role/Note20SegmentInformationTables"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_ItemsMeasuredatFairValueonaRecurringBasisTable" roleURI="http://www.o2micro.com/role/ItemsMeasuredatFairValueonaRecurringBasisTable"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_ItemsMeasuredatFairValueonaNonrecurringBasisTable" roleURI="http://www.o2micro.com/role/ItemsMeasuredatFairValueonaNonrecurringBasisTable"/>    
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_SummaryofCashandCashEquivalentsTable" roleURI="http://www.o2micro.com/role/SummaryofCashandCashEquivalentsTable"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_SummaryofShorttermInvestmentsTable" roleURI="http://www.o2micro.com/role/SummaryofShorttermInvestmentsTable"/>    
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_SummaryofShorttermInvestmentsbyContractualMaturityTable" roleURI="http://www.o2micro.com/role/SummaryofShorttermInvestmentsbyContractualMaturityTable"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_SummaryofInventoryTable" roleURI="http://www.o2micro.com/role/SummaryofInventoryTable"/>  
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_SummaryofPrepaidExpensesandOtherCurrentAssetsTable" roleURI="http://www.o2micro.com/role/SummaryofPrepaidExpensesandOtherCurrentAssetsTable"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_LongtermInvestmentsTable" roleURI="http://www.o2micro.com/role/LongtermInvestmentsTable"/>    
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_GrossUnrealizedGainsandLossofAvailableforsaleSecuritiesTable" roleURI="http://www.o2micro.com/role/GrossUnrealizedGainsandLossofAvailableforsaleSecuritiesTable"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_SummaryofPropertyandEquipmentNetTable" roleURI="http://www.o2micro.com/role/SummaryofPropertyandEquipmentNetTable"/>     
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_SummaryofOtherAssetsTable" roleURI="http://www.o2micro.com/role/SummaryofOtherAssetsTable"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_SummaryofAccruedExpensesandOtherCurrentLiabilitiesTable" roleURI="http://www.o2micro.com/role/SummaryofAccruedExpensesandOtherCurrentLiabilitiesTable"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_SummaryofIncomeLossBeforeIncomeTaxesfromContinuingOperationsTable" roleURI="http://www.o2micro.com/role/SummaryofIncomeLossBeforeIncomeTaxesfromContinuingOperationsTable"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_SummaryofIncomeTaxExpensefromContinuingOperationsTable" roleURI="http://www.o2micro.com/role/SummaryofIncomeTaxExpensefromContinuingOperationsTable"/>    
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_ReconciliationBetweenStatutoryIncomeTaxRateandtheEffectiveIncomeTaxRateTable" roleURI="http://www.o2micro.com/role/ReconciliationBetweenStatutoryIncomeTaxRateandtheEffectiveIncomeTaxRateTable"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_SummaryofDeferredTaxAssetsandLiabilitiesTable" roleURI="http://www.o2micro.com/role/SummaryofDeferredTaxAssetsandLiabilitiesTable"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_PercentageofMajorCategoryofPlanAssetsUnderReviewTable" roleURI="http://www.o2micro.com/role/PercentageofMajorCategoryofPlanAssetsUnderReviewTable"/>  
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_ChangesinProjectedBenefitObligationandPlanAssetsTable" roleURI="http://www.o2micro.com/role/ChangesinProjectedBenefitObligationandPlanAssetsTable"/>  
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_SummaryofNetPeriodicBenefitCostTable" roleURI="http://www.o2micro.com/role/SummaryofNetPeriodicBenefitCostTable"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_SummaryofFundedStatusofthePlanTable" roleURI="http://www.o2micro.com/role/SummaryofFundedStatusofthePlanTable"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_ActuarialAssumptionstoDetermineBenefitObligationsUnderReviewTable" roleURI="http://www.o2micro.com/role/ActuarialAssumptionstoDetermineBenefitObligationsUnderReviewTable"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_ActuarialAssumptionstoDeterminetheNetPeriodicBenefitCostUnderReviewTable" roleURI="http://www.o2micro.com/role/ActuarialAssumptionstoDeterminetheNetPeriodicBenefitCostUnderReviewTable"/>     
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_SummaryofEstimatedFutureBenefitPaymentsTable" roleURI="http://www.o2micro.com/role/SummaryofEstimatedFutureBenefitPaymentsTable"/>    
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_StockOptionActivityTable" roleURI="http://www.o2micro.com/role/StockOptionActivityTable"/>    
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_OptionsOutstandingandVestedStockOptionsTable" roleURI="http://www.o2micro.com/role/OptionsOutstandingandVestedStockOptionsTable"/>    
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_FairValueAssumptionsofStockOptionsandESOPTable" roleURI="http://www.o2micro.com/role/FairValueAssumptionsofStockOptionsandESOPTable"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_RSUsActivityTable" roleURI="http://www.o2micro.com/role/RSUsActivityTable"/>     
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_OrdinarySharesReservedforFutureIssuanceTable" roleURI="http://www.o2micro.com/role/OrdinarySharesReservedforFutureIssuanceTable"/>    
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_BasicandDilutedEarningsLossPerShareTable" roleURI="http://www.o2micro.com/role/BasicandDilutedEarningsLossPerShareTable"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_FutureMinimumLeasePaymentsforAllNoncancelableOperatingLeasesTable" roleURI="http://www.o2micro.com/role/FutureMinimumLeasePaymentsforAllNoncancelableOperatingLeasesTable"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_PurchaseObligationsandCommitmentsTable" roleURI="http://www.o2micro.com/role/PurchaseObligationsandCommitmentsTable"/>  
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_FinancialInstrumentsTable" roleURI="http://www.o2micro.com/role/FinancialInstrumentsTable"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_SummaryofOperatingSegmentNetSalesandOperatingIncomeLossTable" roleURI="http://www.o2micro.com/role/SummaryofOperatingSegmentNetSalesandOperatingIncomeLossTable"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_SummaryofNetSalestoUnaffiliatedCustomersbyGeographicRegionTable" roleURI="http://www.o2micro.com/role/SummaryofNetSalestoUnaffiliatedCustomersbyGeographicRegionTable"/>  
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_PercentageofNetSalestoMajorCustomerTable" roleURI="http://www.o2micro.com/role/PercentageofNetSalestoMajorCustomerTable"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_SummaryofLongLivedAssetsbyPhysicalLocationTable" roleURI="http://www.o2micro.com/role/SummaryofLongLivedAssetsbyPhysicalLocationTable"/>     
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note2SummaryofSignificantAccountingPoliciesDetails" roleURI="http://www.o2micro.com/role/Note2SummaryofSignificantAccountingPoliciesDetails"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note3DiscontinuedOperationsandExitActivitiesDetails" roleURI="http://www.o2micro.com/role/Note3DiscontinuedOperationsandExitActivitiesDetails"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note4FairValueMeasurementsDetails" roleURI="http://www.o2micro.com/role/Note4FairValueMeasurementsDetails"/>  
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note6ShorttermInvestmentsDetails" roleURI="http://www.o2micro.com/role/Note6ShorttermInvestmentsDetails"/>     
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note9LongtermInvestmentsDetails" roleURI="http://www.o2micro.com/role/Note9LongtermInvestmentsDetails"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note10PropertyandEquipmentNetDetails" roleURI="http://www.o2micro.com/role/Note10PropertyandEquipmentNetDetails"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note11OtherAssetsDetails" roleURI="http://www.o2micro.com/role/Note11OtherAssetsDetails"/>    
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note13IncomeTaxDetails" roleURI="http://www.o2micro.com/role/Note13IncomeTaxDetails"/>     
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note14RetirementandPensionPlansDetails" roleURI="http://www.o2micro.com/role/Note14RetirementandPensionPlansDetails"/>  
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note15StockbasedCompensationDetails" roleURI="http://www.o2micro.com/role/Note15StockbasedCompensationDetails"/> 
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note16EarningsLossPerShareDetails" roleURI="http://www.o2micro.com/role/Note16EarningsLossPerShareDetails"/>  
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note17CommitmentsDetails" roleURI="http://www.o2micro.com/role/Note17CommitmentsDetails"/>    
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note18ContingenciesDetails" roleURI="http://www.o2micro.com/role/Note18ContingenciesDetails"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#oiim_r_Note20SegmentInformationDetails" roleURI="http://www.o2micro.com/role/Note20SegmentInformationDetails"/>   
  <roleRef xlink:type="simple" xlink:href="oiim-20151231.xsd#DocumentAndEntityInformation" roleURI="http://www.o2micro.com/role/DocumentAndEntityInformation"/>     
  <arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default"/> 
  <arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain"/>    
  <arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension"/>     
  <arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member"/>   
  <arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" arcroleURI="http://xbrl.org/int/dim/arcrole/all"/>   
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/ConsolidatedBalanceSheet">  
    <loc xlink:type="locator" xlink:label="us-gaap_StatementLineItems" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_StatementTable" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StatementTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_StatementScenarioAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementScenarioAxis"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_StatementTable" xlink:to="us-gaap_StatementScenarioAxis" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ScenarioUnspecifiedDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementScenarioAxis" xlink:to="us-gaap_ScenarioUnspecifiedDomain" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ScenarioUnspecifiedDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementScenarioAxis" xlink:to="us-gaap_ScenarioUnspecifiedDomain_0" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_AssetsCurrentAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetsCurrentAbstract"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_AssetsCurrentAbstract" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AssetsCurrentAbstract" xlink:to="us-gaap_CashAndCashEquivalentsAtCarryingValue" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AssetsCurrentAbstract" xlink:to="us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ShortTermInvestments" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShortTermInvestments"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AssetsCurrentAbstract" xlink:to="us-gaap_ShortTermInvestments" order="2" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_AccountsReceivableNetCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsReceivableNetCurrent"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AssetsCurrentAbstract" xlink:to="us-gaap_AccountsReceivableNetCurrent" order="3" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_InventoryNet" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryNet"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AssetsCurrentAbstract" xlink:to="us-gaap_InventoryNet" order="4" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AssetsCurrentAbstract" xlink:to="us-gaap_PrepaidExpenseAndOtherAssetsCurrent" order="5" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AssetsCurrentAbstract" xlink:to="us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent" order="6" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_AssetsCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetsCurrent"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AssetsOfDisposalGroupIncludingDiscontinuedOperationCurrent" xlink:to="us-gaap_AssetsCurrent" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_LongTermInvestments" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongTermInvestments"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_LongTermInvestments" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentNet" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_PropertyPlantAndEquipmentNet" order="3" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_OtherAssetsNoncurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherAssetsNoncurrent"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_OtherAssetsNoncurrent" order="4" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_Assets" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Assets"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_Assets" order="5" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_LiabilitiesAndStockholdersEquityAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_LiabilitiesAndStockholdersEquityAbstract" order="6" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_LiabilitiesCurrentAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LiabilitiesCurrentAbstract"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_LiabilitiesCurrentAbstract" order="7" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_NotesPayableCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NotesPayableCurrent"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LiabilitiesCurrentAbstract" xlink:to="us-gaap_NotesPayableCurrent" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_TaxesPayableCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TaxesPayableCurrent"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LiabilitiesCurrentAbstract" xlink:to="us-gaap_TaxesPayableCurrent" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LiabilitiesCurrentAbstract" xlink:to="us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent" order="2" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_LiabilitiesCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LiabilitiesCurrent"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent" xlink:to="us-gaap_LiabilitiesCurrent" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_LiabilitiesNoncurrentAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LiabilitiesNoncurrentAbstract"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_LiabilitiesNoncurrentAbstract" order="8" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LiabilitiesNoncurrentAbstract" xlink:to="us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_OtherLiabilitiesNoncurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LiabilitiesNoncurrentAbstract" xlink:to="us-gaap_OtherLiabilitiesNoncurrent" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_LiabilitiesNoncurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LiabilitiesNoncurrent"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OtherLiabilitiesNoncurrent" xlink:to="us-gaap_LiabilitiesNoncurrent" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_Liabilities" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Liabilities"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OtherLiabilitiesNoncurrent" xlink:to="us-gaap_Liabilities" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_CommitmentsAndContingencies" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommitmentsAndContingencies"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_CommitmentsAndContingencies" order="9" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_StockholdersEquityAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockholdersEquityAbstract"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StockholdersEquityAbstract" order="10" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_PreferredStockValueOutstanding" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PreferredStockValueOutstanding"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StockholdersEquityAbstract" xlink:to="us-gaap_PreferredStockValueOutstanding" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_CommonStockValue" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockValue"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StockholdersEquityAbstract" xlink:to="us-gaap_CommonStockValue" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_AdditionalPaidInCapitalCommonStock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_CommonStockValue" xlink:to="us-gaap_AdditionalPaidInCapitalCommonStock" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_RetainedEarningsAccumulatedDeficit" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_CommonStockValue" xlink:to="us-gaap_RetainedEarningsAccumulatedDeficit" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_CommonStockValue" xlink:to="us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_TreasuryStockValue" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockValue"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StockholdersEquityAbstract" xlink:to="us-gaap_TreasuryStockValue" order="2" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_StockholdersEquity" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockholdersEquity"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_TreasuryStockValue" xlink:to="us-gaap_StockholdersEquity" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_LiabilitiesAndStockholdersEquity" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_LiabilitiesAndStockholdersEquity" order="11" xbrldt:closed="true"/>    
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/ConsolidatedBalanceSheet_Parentheticals">  
    <loc xlink:type="locator" xlink:label="us-gaap_StatementLineItems" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_StatementTable" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StatementTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_StatementScenarioAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementScenarioAxis"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_StatementTable" xlink:to="us-gaap_StatementScenarioAxis" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ScenarioUnspecifiedDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementScenarioAxis" xlink:to="us-gaap_ScenarioUnspecifiedDomain" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ScenarioUnspecifiedDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementScenarioAxis" xlink:to="us-gaap_ScenarioUnspecifiedDomain_0" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_PreferredStockParOrStatedValuePerShare" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PreferredStockParOrStatedValuePerShare"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_PreferredStockParOrStatedValuePerShare" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_PreferredStockSharesAuthorized" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PreferredStockSharesAuthorized"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_PreferredStockSharesAuthorized" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_CommonStockParOrStatedValuePerShare" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_CommonStockParOrStatedValuePerShare" order="3" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_CommonStockSharesAuthorized" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockSharesAuthorized"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_CommonStockSharesAuthorized" order="4" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_CommonStockSharesIssued" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockSharesIssued"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_CommonStockSharesIssued" order="5" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_CommonStockSharesOutstanding" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockSharesOutstanding"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_CommonStockSharesOutstanding" order="6" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_TreasuryStockShares" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockShares"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_TreasuryStockShares" order="7" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/ConsolidatedIncomeStatement">     
    <loc xlink:type="locator" xlink:label="us-gaap_StatementLineItems" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_StatementTable" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StatementTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_StatementScenarioAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementScenarioAxis"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_StatementTable" xlink:to="us-gaap_StatementScenarioAxis" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ScenarioUnspecifiedDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementScenarioAxis" xlink:to="us-gaap_ScenarioUnspecifiedDomain" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ScenarioUnspecifiedDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementScenarioAxis" xlink:to="us-gaap_ScenarioUnspecifiedDomain_0" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_SalesRevenueGoodsNet" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SalesRevenueGoodsNet"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_SalesRevenueGoodsNet" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_CostOfGoodsSold" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CostOfGoodsSold"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_CostOfGoodsSold" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_GrossProfit" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GrossProfit"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_GrossProfit" order="3" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_OperatingExpensesAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingExpensesAbstract"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_OperatingExpensesAbstract" order="4" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ResearchAndDevelopmentExpense" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ResearchAndDevelopmentExpense"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingExpensesAbstract" xlink:to="us-gaap_ResearchAndDevelopmentExpense" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_SellingGeneralAndAdministrativeExpense" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SellingGeneralAndAdministrativeExpense"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingExpensesAbstract" xlink:to="us-gaap_SellingGeneralAndAdministrativeExpense" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_BusinessExitCosts1" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessExitCosts1"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingExpensesAbstract" xlink:to="us-gaap_BusinessExitCosts1" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_OtherNonoperatingIncome" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherNonoperatingIncome"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingExpensesAbstract" xlink:to="us-gaap_OtherNonoperatingIncome" order="3" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_OperatingExpenses" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingExpenses"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OperatingExpensesAbstract" xlink:to="us-gaap_OperatingExpenses" order="4" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_OperatingIncomeLoss" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingIncomeLoss"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_OperatingIncomeLoss" order="5" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_NonoperatingIncomeExpenseAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NonoperatingIncomeExpenseAbstract"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_NonoperatingIncomeExpenseAbstract" order="6" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_InterestIncomeExpenseNet" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestIncomeExpenseNet"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NonoperatingIncomeExpenseAbstract" xlink:to="us-gaap_InterestIncomeExpenseNet" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NonoperatingIncomeExpenseAbstract" xlink:to="us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossArisingDuringPeriodNetOfTax" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_GoodwillAndIntangibleAssetImpairment" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NonoperatingIncomeExpenseAbstract" xlink:to="us-gaap_GoodwillAndIntangibleAssetImpairment" order="2" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_GainLossOnSaleOfInvestments" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GainLossOnSaleOfInvestments"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NonoperatingIncomeExpenseAbstract" xlink:to="us-gaap_GainLossOnSaleOfInvestments" order="3" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_GainsLossesOnSalesOfInvestmentRealEstate" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GainsLossesOnSalesOfInvestmentRealEstate"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NonoperatingIncomeExpenseAbstract" xlink:to="us-gaap_GainsLossesOnSalesOfInvestmentRealEstate" order="4" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_OtherNonoperatingIncomeExpense" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NonoperatingIncomeExpenseAbstract" xlink:to="us-gaap_OtherNonoperatingIncomeExpense" order="5" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_NonoperatingIncomeExpense" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NonoperatingIncomeExpense"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NonoperatingIncomeExpenseAbstract" xlink:to="us-gaap_NonoperatingIncomeExpense" order="6" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" order="7" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeTaxExpenseBenefit" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_IncomeTaxExpenseBenefit" order="8" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeLossFromContinuingOperations" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromContinuingOperations"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_IncomeLossFromContinuingOperations" order="9" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity" order="10" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_NetIncomeLoss" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetIncomeLoss"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_NetIncomeLoss" order="11" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_OtherComprehensiveIncomeLossNetOfTaxEffectOfNilAbstract" xlink:href="oiim-20151231.xsd#oiim_OtherComprehensiveIncomeLossNetOfTaxEffectOfNilAbstract"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="oiim_OtherComprehensiveIncomeLossNetOfTaxEffectOfNilAbstract" order="12" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_OtherComprehensiveIncomeLossNetOfTaxEffectOfNilAbstract" xlink:to="us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_OtherComprehensiveIncomeLossNetOfTaxEffectOfNilAbstract" xlink:to="us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_OtherComprehensiveIncomeLossNetOfTaxEffectOfNilAbstract" xlink:to="us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax" order="2" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_OtherComprehensiveIncomeLossNetOfTaxEffectOfNilAbstract" xlink:to="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" order="3" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ComprehensiveIncomeNetOfTax" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_ComprehensiveIncomeNetOfTax" order="13" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_EarningsPerShareBasicAndDilutedAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EarningsPerShareBasicAndDilutedAbstract"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_EarningsPerShareBasicAndDilutedAbstract" order="14" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeLossFromContinuingOperationsPerBasicAndDilutedShare" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsPerBasicAndDilutedShare"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EarningsPerShareBasicAndDilutedAbstract" xlink:to="us-gaap_IncomeLossFromContinuingOperationsPerBasicAndDilutedShare" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerBasicAndDilutedShare" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerBasicAndDilutedShare"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EarningsPerShareBasicAndDilutedAbstract" xlink:to="us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxPerBasicAndDilutedShare" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_EarningsPerShareBasicAndDiluted" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EarningsPerShareBasicAndDiluted"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_EarningsPerShareBasicAndDiluted" order="15" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract" order="16" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_WeightedAverageNumberOfShareOutstandingBasicAndDiluted" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_WeightedAverageNumberOfShareOutstandingBasicAndDiluted"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract" xlink:to="us-gaap_WeightedAverageNumberOfShareOutstandingBasicAndDiluted" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_AIncludesStockBasedCompensationChargeAsFollowsAbstract" xlink:href="oiim-20151231.xsd#oiim_AIncludesStockBasedCompensationChargeAsFollowsAbstract"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="oiim_AIncludesStockBasedCompensationChargeAsFollowsAbstract" order="17" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_StockBasedCompensationIncludedInResearchAndDevelopment" xlink:href="oiim-20151231.xsd#oiim_StockBasedCompensationIncludedInResearchAndDevelopment"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_AIncludesStockBasedCompensationChargeAsFollowsAbstract" xlink:to="oiim_StockBasedCompensationIncludedInResearchAndDevelopment" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_StockBasedCompensationIncludedInSellingGeneralAndAdministrative" xlink:href="oiim-20151231.xsd#oiim_StockBasedCompensationIncludedInSellingGeneralAndAdministrative"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_AIncludesStockBasedCompensationChargeAsFollowsAbstract" xlink:to="oiim_StockBasedCompensationIncludedInSellingGeneralAndAdministrative" order="1" xbrldt:closed="true"/>    
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/ShareholdersEquityType2or3">    
    <loc xlink:type="locator" xlink:label="us-gaap_StatementLineItems" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_StatementTable" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StatementTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_AwardTypeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_StatementTable" xlink:to="us-gaap_AwardTypeAxis" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_StatementEquityComponentsAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_StatementTable" xlink:to="us-gaap_StatementEquityComponentsAxis" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_EquityComponentDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_EquityComponentDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_CommonStockMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_CommonStockMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_AdditionalPaidInCapitalMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_AdditionalPaidInCapitalMember" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_RetainedEarningsMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RetainedEarningsMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_RetainedEarningsMember" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember" order="3" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_AccumulatedTranslationAdjustmentMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedTranslationAdjustmentMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_AccumulatedTranslationAdjustmentMember" order="4" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_AccumulatedOtherComprehensiveIncomeMember" order="5" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_TotalAccumulatedOtherComprehensiveIncomeMember" xlink:href="oiim-20151231.xsd#oiim_TotalAccumulatedOtherComprehensiveIncomeMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="oiim_TotalAccumulatedOtherComprehensiveIncomeMember" order="6" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_TreasuryStockMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_TreasuryStockMember" order="7" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_EmployeeStockOptionMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="us-gaap_EmployeeStockOptionMember" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_EmployeeStockPurchasePlanMember" xlink:href="oiim-20151231.xsd#oiim_EmployeeStockPurchasePlanMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="oiim_EmployeeStockPurchasePlanMember" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_RestrictedShareUnitsMember" xlink:href="oiim-20151231.xsd#oiim_RestrictedShareUnitsMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="oiim_RestrictedShareUnitsMember" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_StockholdersEquity" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockholdersEquity"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StockholdersEquity" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_SharesIssued" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharesIssued"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_SharesIssued" order="2" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_IssuanceOfAbstract" xlink:href="oiim-20151231.xsd#oiim_IssuanceOfAbstract"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="oiim_IssuanceOfAbstract" order="3" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_IssuanceOfAbstract" xlink:to="us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_IssuanceOfAbstract" xlink:to="us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_IssuanceOfAbstract" xlink:to="us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_IssuanceOfAbstract" xlink:to="us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" order="3" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_IssuanceOfAbstract" xlink:to="us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross" order="4" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_TreasuryStockValueAcquiredCostMethod" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_TreasuryStockValueAcquiredCostMethod" order="4" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_TreasuryStockReissuedForAbstract" xlink:href="oiim-20151231.xsd#oiim_TreasuryStockReissuedForAbstract"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="oiim_TreasuryStockReissuedForAbstract" order="5" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_StockIssuedDuringPeriodValueTreasuryStockReissued" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueTreasuryStockReissued"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_TreasuryStockReissuedForAbstract" xlink:to="us-gaap_StockIssuedDuringPeriodValueTreasuryStockReissued" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_StockIssuedDuringPeriodSharesTreasuryStockReissued" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesTreasuryStockReissued"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_TreasuryStockReissuedForAbstract" xlink:to="us-gaap_StockIssuedDuringPeriodSharesTreasuryStockReissued" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensation" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensation"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_ShareBasedCompensation" order="6" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_NetIncomeLoss" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetIncomeLoss"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_NetIncomeLoss" order="7" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentNetOfTax" order="8" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_OtherComprehensiveIncomeLossForeignCurrencyTransactionAndTranslationAdjustmentNetOfTax" order="9" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_OtherComprehensiveIncomeUnrealizedHoldingGainOnSecuritiesArisingDuringPeriodNetOfTax" xlink:href="oiim-20151231.xsd#oiim_OtherComprehensiveIncomeUnrealizedHoldingGainOnSecuritiesArisingDuringPeriodNetOfTax"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="oiim_OtherComprehensiveIncomeUnrealizedHoldingGainOnSecuritiesArisingDuringPeriodNetOfTax" order="10" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax" order="11" xbrldt:closed="true"/> 
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/ShareholdersEquityType2or3_Parentheticals">    
    <loc xlink:type="locator" xlink:label="us-gaap_StatementLineItems" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_StatementTable" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StatementTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_AwardTypeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_StatementTable" xlink:to="us-gaap_AwardTypeAxis" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_StatementEquityComponentsAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementEquityComponentsAxis"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_StatementTable" xlink:to="us-gaap_StatementEquityComponentsAxis" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_EquityComponentDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_EquityComponentDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquityComponentDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_CommonStockMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_CommonStockMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_AdditionalPaidInCapitalMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdditionalPaidInCapitalMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_AdditionalPaidInCapitalMember" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_RetainedEarningsMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RetainedEarningsMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_RetainedEarningsMember" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_AccumulatedNetUnrealizedInvestmentGainLossMember" order="3" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_AccumulatedTranslationAdjustmentMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedTranslationAdjustmentMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_AccumulatedTranslationAdjustmentMember" order="4" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_AccumulatedOtherComprehensiveIncomeMember" order="5" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_TotalAccumulatedOtherComprehensiveIncomeMember" xlink:href="oiim-20151231.xsd#oiim_TotalAccumulatedOtherComprehensiveIncomeMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="oiim_TotalAccumulatedOtherComprehensiveIncomeMember" order="6" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_TreasuryStockMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_TreasuryStockMember" order="7" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_EmployeeStockOptionMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="us-gaap_EmployeeStockOptionMember" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_EmployeeStockPurchasePlanMember" xlink:href="oiim-20151231.xsd#oiim_EmployeeStockPurchasePlanMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="oiim_EmployeeStockPurchasePlanMember" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_RestrictedShareUnitsMember" xlink:href="oiim-20151231.xsd#oiim_RestrictedShareUnitsMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="oiim_RestrictedShareUnitsMember" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_TreasuryStockSharesAcquired" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TreasuryStockSharesAcquired"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_TreasuryStockSharesAcquired" order="1" xbrldt:closed="true"/>   
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/ConsolidatedCashFlow">   
    <loc xlink:type="locator" xlink:label="us-gaap_StatementLineItems" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementLineItems"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_StatementTable" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementTable"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StatementTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_StatementScenarioAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementScenarioAxis"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_StatementTable" xlink:to="us-gaap_StatementScenarioAxis" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ScenarioUnspecifiedDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementScenarioAxis" xlink:to="us-gaap_ScenarioUnspecifiedDomain" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ScenarioUnspecifiedDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScenarioUnspecifiedDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementScenarioAxis" xlink:to="us-gaap_ScenarioUnspecifiedDomain_0" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_NetIncomeLoss" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetIncomeLoss"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract" xlink:to="us-gaap_NetIncomeLoss" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract" xlink:to="us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_DepreciationAndAmortization" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DepreciationAndAmortization"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:to="us-gaap_DepreciationAndAmortization" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensation" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensation"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:to="us-gaap_ShareBasedCompensation" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_GainLossOnDispositionOfAssets" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GainLossOnDispositionOfAssets"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:to="us-gaap_GainLossOnDispositionOfAssets" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_InventoryWriteDown" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryWriteDown"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:to="us-gaap_InventoryWriteDown" order="3" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_RealizedInvestmentGainsLosses" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RealizedInvestmentGainsLosses"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:to="us-gaap_RealizedInvestmentGainsLosses" order="4" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_GoodwillAndIntangibleAssetImpairment" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GoodwillAndIntangibleAssetImpairment"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:to="us-gaap_GoodwillAndIntangibleAssetImpairment" order="5" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_GainLossOnSaleOfPropertyPlantEquipment" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:to="us-gaap_GainLossOnSaleOfPropertyPlantEquipment" order="6" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:to="us-gaap_DeferredIncomeTaxExpenseBenefit" order="7" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_OtherNoncashExpense" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherNoncashExpense"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:to="us-gaap_OtherNoncashExpense" order="8" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_IncreaseDecreaseInOperatingCapitalAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInOperatingCapitalAbstract"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:to="us-gaap_IncreaseDecreaseInOperatingCapitalAbstract" order="9" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_IncreaseDecreaseInReceivables" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInReceivables"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInOperatingCapitalAbstract" xlink:to="us-gaap_IncreaseDecreaseInReceivables" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_IncreaseDecreaseInInventories" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInInventories"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInOperatingCapitalAbstract" xlink:to="us-gaap_IncreaseDecreaseInInventories" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInOperatingCapitalAbstract" xlink:to="us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets" order="2" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_IncreaseDecreaseInDeferredCharges" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInDeferredCharges"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInOperatingCapitalAbstract" xlink:to="us-gaap_IncreaseDecreaseInDeferredCharges" order="3" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_IncreaseDecreaseInNotesPayableCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInNotesPayableCurrent"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInOperatingCapitalAbstract" xlink:to="us-gaap_IncreaseDecreaseInNotesPayableCurrent" order="4" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInOperatingCapitalAbstract" xlink:to="us-gaap_IncreaseDecreaseInAccruedIncomeTaxesPayable" order="5" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_IncreaseDecreaseInOtherAccountsPayableAndAccruedLiabilities" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInOtherAccountsPayableAndAccruedLiabilities"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInOperatingCapitalAbstract" xlink:to="us-gaap_IncreaseDecreaseInOtherAccountsPayableAndAccruedLiabilities" order="6" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInOperatingCapitalAbstract" xlink:to="us-gaap_IncreaseDecreaseInEmployeeRelatedLiabilities" order="7" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_IncreaseDecreaseInOtherOperatingLiabilities" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInOperatingCapitalAbstract" xlink:to="us-gaap_IncreaseDecreaseInOtherOperatingLiabilities" order="8" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncreaseDecreaseInOperatingCapitalAbstract" xlink:to="us-gaap_NetCashProvidedByUsedInOperatingActivities" order="9" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_AcquisitionOfAbstract" xlink:href="oiim-20151231.xsd#oiim_AcquisitionOfAbstract"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract" xlink:to="oiim_AcquisitionOfAbstract" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_PaymentsToAcquireShortTermInvestments" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsToAcquireShortTermInvestments"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_AcquisitionOfAbstract" xlink:to="us-gaap_PaymentsToAcquireShortTermInvestments" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_PaymentsToAcquireInvestments" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsToAcquireInvestments"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_AcquisitionOfAbstract" xlink:to="us-gaap_PaymentsToAcquireInvestments" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_AcquisitionOfAbstract" xlink:to="us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" order="2" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_DecreaseIncreaseInAbstract" xlink:href="oiim-20151231.xsd#oiim_DecreaseIncreaseInAbstract"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract" xlink:to="oiim_DecreaseIncreaseInAbstract" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_IncreaseDecreaseInRestrictedCashAndInvestments" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInRestrictedCashAndInvestments"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_DecreaseIncreaseInAbstract" xlink:to="us-gaap_IncreaseDecreaseInRestrictedCashAndInvestments" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_IncreaseDecreaseInRestrictedCash" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInRestrictedCash"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_DecreaseIncreaseInAbstract" xlink:to="us-gaap_IncreaseDecreaseInRestrictedCash" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_IncreaseDecreaseInOtherCurrentAssets" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncreaseDecreaseInOtherCurrentAssets"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_DecreaseIncreaseInAbstract" xlink:to="us-gaap_IncreaseDecreaseInOtherCurrentAssets" order="2" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_ProceedsFromAbstract" xlink:href="oiim-20151231.xsd#oiim_ProceedsFromAbstract"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract" xlink:to="oiim_ProceedsFromAbstract" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ProceedsFromAbstract" xlink:to="us-gaap_ProceedsFromSaleAndMaturityOfAvailableForSaleSecurities" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ProceedsFromSaleOfLongtermInvestments" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromSaleOfLongtermInvestments"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ProceedsFromAbstract" xlink:to="us-gaap_ProceedsFromSaleOfLongtermInvestments" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ProceedsFromAbstract" xlink:to="us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment" order="2" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ProceedsFromSaleOfPropertyPlantAndEquipment" xlink:to="us-gaap_NetCashProvidedByUsedInInvestingActivities" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract" order="3" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_PaymentsForRepurchaseOfCommonStock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract" xlink:to="us-gaap_PaymentsForRepurchaseOfCommonStock" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_ProceedsFromAbstract0" xlink:href="oiim-20151231.xsd#oiim_ProceedsFromAbstract0"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract" xlink:to="oiim_ProceedsFromAbstract0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ProceedsFromStockOptionsExercised" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ProceedsFromAbstract0" xlink:to="us-gaap_ProceedsFromStockOptionsExercised" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ProceedsFromAbstract0" xlink:to="us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans" xlink:to="us-gaap_NetCashProvidedByUsedInFinancingActivities" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_EffectOfExchangeRateOnCashAndCashEquivalents" order="4" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease" order="5" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_CashAndCashEquivalentsAtCarryingValue" order="6" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_SupplementalCashFlowInformationAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SupplementalCashFlowInformationAbstract"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_SupplementalCashFlowInformationAbstract" order="7" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeTaxesPaid" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxesPaid"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SupplementalCashFlowInformationAbstract" xlink:to="us-gaap_IncomeTaxesPaid" order="0" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note1General">     
    <loc xlink:type="locator" xlink:label="us-gaap_DisclosureTextBlockAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisclosureTextBlockAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureTextBlockAbstract" xlink:to="us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsDisclosureTextBlock" order="0" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note2SummaryofSignificantAccountingPolicies"> 
    <loc xlink:type="locator" xlink:label="us-gaap_AccountingPoliciesAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountingPoliciesAbstract"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_SignificantAccountingPoliciesTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SignificantAccountingPoliciesTextBlock"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_SignificantAccountingPoliciesTextBlock" order="0" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note3DiscontinuedOperationsandExitActivities">  
    <loc xlink:type="locator" xlink:label="us-gaap_DiscontinuedOperationsAndDisposalGroupsAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DiscontinuedOperationsAndDisposalGroupsAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DiscontinuedOperationsAndDisposalGroupsAbstract" xlink:to="us-gaap_DisposalGroupsIncludingDiscontinuedOperationsDisclosureTextBlock" order="0" xbrldt:closed="true"/>    
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note4FairValueMeasurements">    
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueDisclosuresAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueDisclosuresAbstract"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueDisclosuresTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueDisclosuresTextBlock"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueDisclosuresAbstract" xlink:to="us-gaap_FairValueDisclosuresTextBlock" order="0" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note5CashandCashEquivalents">     
    <loc xlink:type="locator" xlink:label="us-gaap_CashAndCashEquivalentsAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsAbstract"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_CashAndCashEquivalentsDisclosureTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsDisclosureTextBlock"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_CashAndCashEquivalentsAbstract" xlink:to="us-gaap_CashAndCashEquivalentsDisclosureTextBlock" order="0" xbrldt:closed="true"/>    
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note6ShorttermInvestments">   
    <loc xlink:type="locator" xlink:label="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisclosureTextBlockSupplementAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_CashCashEquivalentsAndShortTermInvestmentsTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashCashEquivalentsAndShortTermInvestmentsTextBlock"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:to="us-gaap_CashCashEquivalentsAndShortTermInvestmentsTextBlock" order="0" xbrldt:closed="true"/> 
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note7Inventories">    
    <loc xlink:type="locator" xlink:label="us-gaap_InventoryDisclosureAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryDisclosureAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_InventoryDisclosureTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryDisclosureTextBlock"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InventoryDisclosureAbstract" xlink:to="us-gaap_InventoryDisclosureTextBlock" order="0" xbrldt:closed="true"/>   
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note8PrepaidExpensesandOtherCurrentAssets">    
    <loc xlink:type="locator" xlink:label="oiim_PrepaidExpensesAndOtherCurrentAssetsAbstract" xlink:href="oiim-20151231.xsd#oiim_PrepaidExpensesAndOtherCurrentAssetsAbstract"/>  
    <loc xlink:type="locator" xlink:label="oiim_PrepaidExpensesAndOtherCurrentAssetsTextBlock" xlink:href="oiim-20151231.xsd#oiim_PrepaidExpensesAndOtherCurrentAssetsTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_PrepaidExpensesAndOtherCurrentAssetsAbstract" xlink:to="oiim_PrepaidExpensesAndOtherCurrentAssetsTextBlock" order="0" xbrldt:closed="true"/> 
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note9LongtermInvestments">  
    <loc xlink:type="locator" xlink:label="us-gaap_InvestmentsDebtAndEquitySecuritiesAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InvestmentsDebtAndEquitySecuritiesAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentsDebtAndEquitySecuritiesAbstract" xlink:to="us-gaap_InvestmentsInDebtAndMarketableEquitySecuritiesAndCertainTradingAssetsDisclosureTextBlock" order="0" xbrldt:closed="true"/>   
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note10PropertyandEquipmentNet">  
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentAbstract"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentDisclosureTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentDisclosureTextBlock"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentAbstract" xlink:to="us-gaap_PropertyPlantAndEquipmentDisclosureTextBlock" order="0" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note11OtherAssets">     
    <loc xlink:type="locator" xlink:label="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisclosureTextBlockSupplementAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_OtherAssetsDisclosureTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherAssetsDisclosureTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:to="us-gaap_OtherAssetsDisclosureTextBlock" order="0" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note12AccruedExpensesandOtherCurrentLiabilities">     
    <loc xlink:type="locator" xlink:label="us-gaap_OtherLiabilitiesAndSharesSubjectToMandatoryRedemptionAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherLiabilitiesAndSharesSubjectToMandatoryRedemptionAbstract"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_OtherLiabilitiesDisclosureTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherLiabilitiesDisclosureTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OtherLiabilitiesAndSharesSubjectToMandatoryRedemptionAbstract" xlink:to="us-gaap_OtherLiabilitiesDisclosureTextBlock" order="0" xbrldt:closed="true"/>    
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note13IncomeTax">   
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeTaxDisclosureAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxDisclosureAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeTaxDisclosureTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxDisclosureTextBlock"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeTaxDisclosureAbstract" xlink:to="us-gaap_IncomeTaxDisclosureTextBlock" order="0" xbrldt:closed="true"/>   
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note14RetirementandPensionPlans">    
    <loc xlink:type="locator" xlink:label="us-gaap_CompensationAndRetirementDisclosureAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CompensationAndRetirementDisclosureAbstract"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_PensionAndOtherPostretirementBenefitsDisclosureTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PensionAndOtherPostretirementBenefitsDisclosureTextBlock"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_CompensationAndRetirementDisclosureAbstract" xlink:to="us-gaap_PensionAndOtherPostretirementBenefitsDisclosureTextBlock" order="0" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note15StockbasedCompensation"> 
    <loc xlink:type="locator" xlink:label="us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract" xlink:to="us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock" order="0" xbrldt:closed="true"/>   
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note16EarningsLossPerShare">    
    <loc xlink:type="locator" xlink:label="us-gaap_EarningsPerShareAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EarningsPerShareAbstract"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_EarningsPerShareTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EarningsPerShareTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EarningsPerShareAbstract" xlink:to="us-gaap_EarningsPerShareTextBlock" order="0" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note17Commitments">     
    <loc xlink:type="locator" xlink:label="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisclosureTextBlockSupplementAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_CommitmentsDisclosureTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommitmentsDisclosureTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:to="us-gaap_CommitmentsDisclosureTextBlock" order="0" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note18Contingencies">  
    <loc xlink:type="locator" xlink:label="us-gaap_LossContingencyAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LossContingencyAbstract"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_LossContingencyDisclosures" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LossContingencyDisclosures"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LossContingencyAbstract" xlink:to="us-gaap_LossContingencyDisclosures" order="0" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note19FinancialInstruments">    
    <loc xlink:type="locator" xlink:label="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisclosureTextBlockSupplementAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_FinancialInstrumentsDisclosureTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FinancialInstrumentsDisclosureTextBlock"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:to="us-gaap_FinancialInstrumentsDisclosureTextBlock" order="0" xbrldt:closed="true"/>    
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note20SegmentInformation">  
    <loc xlink:type="locator" xlink:label="us-gaap_SegmentReportingAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingAbstract"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_SegmentReportingDisclosureTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingDisclosureTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentReportingAbstract" xlink:to="us-gaap_SegmentReportingDisclosureTextBlock" order="0" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/AccountingPoliciesByPolicy">    
    <loc xlink:type="locator" xlink:label="us-gaap_AccountingPoliciesAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountingPoliciesAbstract"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_BasisOfAccountingPolicyPolicyTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BasisOfAccountingPolicyPolicyTextBlock"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_BasisOfAccountingPolicyPolicyTextBlock" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_UseOfEstimates" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UseOfEstimates"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_UseOfEstimates" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ConcentrationRiskCreditRisk" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskCreditRisk"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_ConcentrationRiskCreditRisk" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueOfFinancialInstrumentsPolicy" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueOfFinancialInstrumentsPolicy"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_FairValueOfFinancialInstrumentsPolicy" order="3" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_CashAndCashEquivalentsPolicyTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsPolicyTextBlock"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_CashAndCashEquivalentsPolicyTextBlock" order="4" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_CashAndCashEquivalentsRestrictedCashAndCashEquivalentsPolicy" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsRestrictedCashAndCashEquivalentsPolicy"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_CashAndCashEquivalentsRestrictedCashAndCashEquivalentsPolicy" order="5" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_MarketableSecuritiesPolicy" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MarketableSecuritiesPolicy"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_MarketableSecuritiesPolicy" order="6" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_InventoryPolicyTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryPolicyTextBlock"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_InventoryPolicyTextBlock" order="7" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_InvestmentPolicyTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InvestmentPolicyTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_InvestmentPolicyTextBlock" order="8" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentPolicyTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentPolicyTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_PropertyPlantAndEquipmentPolicyTextBlock" order="9" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="oiim_AssetsHeldForSalePolicyTextBlock" xlink:href="oiim-20151231.xsd#oiim_AssetsHeldForSalePolicyTextBlock"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="oiim_AssetsHeldForSalePolicyTextBlock" order="10" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ImpairmentOrDisposalOfLongLivedAssetsIncludingIntangibleAssetsPolicyPolicyTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ImpairmentOrDisposalOfLongLivedAssetsIncludingIntangibleAssetsPolicyPolicyTextBlock"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_ImpairmentOrDisposalOfLongLivedAssetsIncludingIntangibleAssetsPolicyPolicyTextBlock" order="11" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_StockholdersEquityPolicyTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockholdersEquityPolicyTextBlock"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_StockholdersEquityPolicyTextBlock" order="12" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_RevenueRecognitionPolicyTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RevenueRecognitionPolicyTextBlock"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_RevenueRecognitionPolicyTextBlock" order="13" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ShippingAndHandlingCostPolicyTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShippingAndHandlingCostPolicyTextBlock"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_ShippingAndHandlingCostPolicyTextBlock" order="14" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ResearchAndDevelopmentExpensePolicy" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ResearchAndDevelopmentExpensePolicy"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_ResearchAndDevelopmentExpensePolicy" order="15" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_AdvertisingCostsPolicyTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdvertisingCostsPolicyTextBlock"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_AdvertisingCostsPolicyTextBlock" order="16" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_PensionAndOtherPostretirementPlansPolicy" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PensionAndOtherPostretirementPlansPolicy"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_PensionAndOtherPostretirementPlansPolicy" order="17" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_GovernmentGrantsPolicyTextBlock" xlink:href="oiim-20151231.xsd#oiim_GovernmentGrantsPolicyTextBlock"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="oiim_GovernmentGrantsPolicyTextBlock" order="18" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeTaxPolicyTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxPolicyTextBlock"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_IncomeTaxPolicyTextBlock" order="19" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationOptionAndIncentivePlansPolicy" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationOptionAndIncentivePlansPolicy"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_ShareBasedCompensationOptionAndIncentivePlansPolicy" order="20" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ForeignCurrencyTransactionsAndTranslationsPolicyTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ForeignCurrencyTransactionsAndTranslationsPolicyTextBlock"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_ForeignCurrencyTransactionsAndTranslationsPolicyTextBlock" order="21" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_TranslationOfForeignCurrencyFinancialStatementsPolicyTextBlock" xlink:href="oiim-20151231.xsd#oiim_TranslationOfForeignCurrencyFinancialStatementsPolicyTextBlock"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="oiim_TranslationOfForeignCurrencyFinancialStatementsPolicyTextBlock" order="22" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ComprehensiveIncomePolicyPolicyTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ComprehensiveIncomePolicyPolicyTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_ComprehensiveIncomePolicyPolicyTextBlock" order="23" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_LegalContingenciesPolicyTextBlock" xlink:href="oiim-20151231.xsd#oiim_LegalContingenciesPolicyTextBlock"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="oiim_LegalContingenciesPolicyTextBlock" order="24" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccountingPoliciesAbstract" xlink:to="us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock" order="25" xbrldt:closed="true"/>   
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note4FairValueMeasurementsTables">     
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueDisclosuresAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueDisclosuresAbstract"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueAssetsMeasuredOnRecurringBasisTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisTextBlock"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueDisclosuresAbstract" xlink:to="us-gaap_FairValueAssetsMeasuredOnRecurringBasisTextBlock" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueAssetsMeasuredOnNonrecurringBasisTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnNonrecurringBasisTextBlock"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueDisclosuresAbstract" xlink:to="us-gaap_FairValueAssetsMeasuredOnNonrecurringBasisTextBlock" order="1" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note5CashandCashEquivalentsTables"> 
    <loc xlink:type="locator" xlink:label="us-gaap_CashAndCashEquivalentsAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsAbstract"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfCashAndCashEquivalentsTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfCashAndCashEquivalentsTableTextBlock"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_CashAndCashEquivalentsAbstract" xlink:to="us-gaap_ScheduleOfCashAndCashEquivalentsTableTextBlock" order="0" xbrldt:closed="true"/>    
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note6ShorttermInvestmentsTables">    
    <loc xlink:type="locator" xlink:label="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisclosureTextBlockSupplementAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfCashCashEquivalentsAndShortTermInvestmentsTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfCashCashEquivalentsAndShortTermInvestmentsTableTextBlock"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:to="us-gaap_ScheduleOfCashCashEquivalentsAndShortTermInvestmentsTableTextBlock" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_InvestmentsClassifiedByContractualMaturityDateTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InvestmentsClassifiedByContractualMaturityDateTableTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:to="us-gaap_InvestmentsClassifiedByContractualMaturityDateTableTextBlock" order="1" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note7InventoriesTables">     
    <loc xlink:type="locator" xlink:label="us-gaap_InventoryDisclosureAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryDisclosureAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfInventoryCurrentTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfInventoryCurrentTableTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InventoryDisclosureAbstract" xlink:to="us-gaap_ScheduleOfInventoryCurrentTableTextBlock" order="0" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note8PrepaidExpensesandOtherCurrentAssetsTables">     
    <loc xlink:type="locator" xlink:label="oiim_PrepaidExpensesAndOtherCurrentAssetsAbstract" xlink:href="oiim-20151231.xsd#oiim_PrepaidExpensesAndOtherCurrentAssetsAbstract"/>  
    <loc xlink:type="locator" xlink:label="oiim_ScheduleOfPrepaidExpensesAndOtherCurrentAssetsTableTextBlock" xlink:href="oiim-20151231.xsd#oiim_ScheduleOfPrepaidExpensesAndOtherCurrentAssetsTableTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_PrepaidExpensesAndOtherCurrentAssetsAbstract" xlink:to="oiim_ScheduleOfPrepaidExpensesAndOtherCurrentAssetsTableTextBlock" order="0" xbrldt:closed="true"/> 
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note9LongtermInvestmentsTables">   
    <loc xlink:type="locator" xlink:label="us-gaap_InvestmentsDebtAndEquitySecuritiesAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InvestmentsDebtAndEquitySecuritiesAbstract"/>   
    <loc xlink:type="locator" xlink:label="oiim_ScheduleOfLongTermInvestmentsTableTextBlock" xlink:href="oiim-20151231.xsd#oiim_ScheduleOfLongTermInvestmentsTableTextBlock"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentsDebtAndEquitySecuritiesAbstract" xlink:to="oiim_ScheduleOfLongTermInvestmentsTableTextBlock" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_UnrealizedGainLossOnInvestmentsTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UnrealizedGainLossOnInvestmentsTableTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentsDebtAndEquitySecuritiesAbstract" xlink:to="us-gaap_UnrealizedGainLossOnInvestmentsTableTextBlock" order="1" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note10PropertyandEquipmentNetTables">   
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentAbstract"/>     
    <loc xlink:type="locator" xlink:label="oiim_PropertyPlantAndEquipmentTableTextBlock" xlink:href="oiim-20151231.xsd#oiim_PropertyPlantAndEquipmentTableTextBlock"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentAbstract" xlink:to="oiim_PropertyPlantAndEquipmentTableTextBlock" order="0" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note11OtherAssetsTables"> 
    <loc xlink:type="locator" xlink:label="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisclosureTextBlockSupplementAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfOtherAssetsTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfOtherAssetsTableTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:to="us-gaap_ScheduleOfOtherAssetsTableTextBlock" order="0" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note12AccruedExpensesandOtherCurrentLiabilitiesTables"> 
    <loc xlink:type="locator" xlink:label="us-gaap_OtherLiabilitiesAndSharesSubjectToMandatoryRedemptionAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherLiabilitiesAndSharesSubjectToMandatoryRedemptionAbstract"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfAccruedLiabilitiesTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfAccruedLiabilitiesTableTextBlock"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_OtherLiabilitiesAndSharesSubjectToMandatoryRedemptionAbstract" xlink:to="us-gaap_ScheduleOfAccruedLiabilitiesTableTextBlock" order="0" xbrldt:closed="true"/> 
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note13IncomeTaxTables">    
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeTaxDisclosureAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxDisclosureAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeTaxDisclosureAbstract" xlink:to="us-gaap_ScheduleOfIncomeBeforeIncomeTaxDomesticAndForeignTableTextBlock" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeTaxDisclosureAbstract" xlink:to="us-gaap_ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeTaxDisclosureAbstract" xlink:to="us-gaap_ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeTaxDisclosureAbstract" xlink:to="us-gaap_ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock" order="3" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note14RetirementandPensionPlansTables">     
    <loc xlink:type="locator" xlink:label="us-gaap_CompensationAndRetirementDisclosureAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CompensationAndRetirementDisclosureAbstract"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfAllocationOfPlanAssetsTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfAllocationOfPlanAssetsTableTextBlock"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_CompensationAndRetirementDisclosureAbstract" xlink:to="us-gaap_ScheduleOfAllocationOfPlanAssetsTableTextBlock" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfChangesInProjectedBenefitObligationsTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfChangesInProjectedBenefitObligationsTableTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_CompensationAndRetirementDisclosureAbstract" xlink:to="us-gaap_ScheduleOfChangesInProjectedBenefitObligationsTableTextBlock" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfNetBenefitCostsTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfNetBenefitCostsTableTextBlock"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_CompensationAndRetirementDisclosureAbstract" xlink:to="us-gaap_ScheduleOfNetBenefitCostsTableTextBlock" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfNetFundedStatusTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfNetFundedStatusTableTextBlock"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_CompensationAndRetirementDisclosureAbstract" xlink:to="us-gaap_ScheduleOfNetFundedStatusTableTextBlock" order="3" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfAssumptionsUsedTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfAssumptionsUsedTableTextBlock"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_CompensationAndRetirementDisclosureAbstract" xlink:to="us-gaap_ScheduleOfAssumptionsUsedTableTextBlock" order="4" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_AssumptionsToDetermineTheNetPeriodicBenefitCostTableTextBlock" xlink:href="oiim-20151231.xsd#oiim_AssumptionsToDetermineTheNetPeriodicBenefitCostTableTextBlock"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_CompensationAndRetirementDisclosureAbstract" xlink:to="oiim_AssumptionsToDetermineTheNetPeriodicBenefitCostTableTextBlock" order="5" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfExpectedBenefitPaymentsTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfExpectedBenefitPaymentsTableTextBlock"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_CompensationAndRetirementDisclosureAbstract" xlink:to="us-gaap_ScheduleOfExpectedBenefitPaymentsTableTextBlock" order="6" xbrldt:closed="true"/>   
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note15StockbasedCompensationTables">  
    <loc xlink:type="locator" xlink:label="us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract" xlink:to="us-gaap_ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTextBlock"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract" xlink:to="us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTextBlock" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfShareBasedPaymentAwardEmployeeStockPurchasePlanValuationAssumptionsTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfShareBasedPaymentAwardEmployeeStockPurchasePlanValuationAssumptionsTableTextBlock"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract" xlink:to="us-gaap_ScheduleOfShareBasedPaymentAwardEmployeeStockPurchasePlanValuationAssumptionsTableTextBlock" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract" xlink:to="us-gaap_ScheduleOfNonvestedRestrictedStockUnitsActivityTableTextBlock" order="3" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfEmployeeStockOwnershipPlanESOPDisclosuresTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfEmployeeStockOwnershipPlanESOPDisclosuresTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract" xlink:to="us-gaap_ScheduleOfEmployeeStockOwnershipPlanESOPDisclosuresTextBlock" order="4" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note16EarningsLossPerShareTables">     
    <loc xlink:type="locator" xlink:label="us-gaap_EarningsPerShareAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EarningsPerShareAbstract"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EarningsPerShareAbstract" xlink:to="us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock" order="0" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note17CommitmentsTables"> 
    <loc xlink:type="locator" xlink:label="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisclosureTextBlockSupplementAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesTableTextBlock"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:to="us-gaap_ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesTableTextBlock" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ContractualObligationFiscalYearMaturityScheduleTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ContractualObligationFiscalYearMaturityScheduleTableTextBlock"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:to="us-gaap_ContractualObligationFiscalYearMaturityScheduleTableTextBlock" order="1" xbrldt:closed="true"/> 
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note19FinancialInstrumentsTables">     
    <loc xlink:type="locator" xlink:label="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisclosureTextBlockSupplementAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueByBalanceSheetGroupingTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueByBalanceSheetGroupingTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:to="us-gaap_FairValueByBalanceSheetGroupingTextBlock" order="0" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note20SegmentInformationTables">   
    <loc xlink:type="locator" xlink:label="us-gaap_SegmentReportingAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingAbstract"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfSegmentReportingInformationBySegmentTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTextBlock"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentReportingAbstract" xlink:to="us-gaap_ScheduleOfSegmentReportingInformationBySegmentTextBlock" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfRevenueFromExternalCustomersAttributedToForeignCountriesByGeographicAreaTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfRevenueFromExternalCustomersAttributedToForeignCountriesByGeographicAreaTextBlock"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentReportingAbstract" xlink:to="us-gaap_ScheduleOfRevenueFromExternalCustomersAttributedToForeignCountriesByGeographicAreaTextBlock" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_SchedulesOfConcentrationOfRiskByRiskFactorTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SchedulesOfConcentrationOfRiskByRiskFactorTextBlock"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentReportingAbstract" xlink:to="us-gaap_SchedulesOfConcentrationOfRiskByRiskFactorTextBlock" order="2" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_LongLivedAssetsByGeographicAreasTableTextBlock" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongLivedAssetsByGeographicAreasTableTextBlock"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentReportingAbstract" xlink:to="us-gaap_LongLivedAssetsByGeographicAreasTableTextBlock" order="3" xbrldt:closed="true"/>   
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/ItemsMeasuredatFairValueonaRecurringBasisTable">    
    <loc xlink:type="locator" xlink:label="oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaRecurringBasisLineItems" xlink:href="oiim-20151231.xsd#oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaRecurringBasisLineItems"/>     
    <loc xlink:type="locator" xlink:label="oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaRecurringBasisTable" xlink:href="oiim-20151231.xsd#oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaRecurringBasisTable"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaRecurringBasisLineItems" xlink:to="oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaRecurringBasisTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaRecurringBasisTable" xlink:to="us-gaap_FairValueByFairValueHierarchyLevelAxis" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:to="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueMeasurementsFairValueHierarchyDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:to="us-gaap_FairValueMeasurementsFairValueHierarchyDomain_0" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueByAssetClassAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueByAssetClassAxis"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaRecurringBasisTable" xlink:to="us-gaap_FairValueByAssetClassAxis" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FairValueByAssetClassAxis" xlink:to="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FairValueByAssetClassAxis" xlink:to="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_0" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueInputsLevel1Member" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueInputsLevel1Member"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:to="us-gaap_FairValueInputsLevel1Member" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueInputsLevel2Member" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:to="us-gaap_FairValueInputsLevel2Member" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueInputsLevel3Member" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueInputsLevel3Member"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:to="us-gaap_FairValueInputsLevel3Member" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_MoneyMarketFundsMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MoneyMarketFundsMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:to="us-gaap_MoneyMarketFundsMember" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_CashAndCashEquivalentsAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsAbstract"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaRecurringBasisLineItems" xlink:to="us-gaap_CashAndCashEquivalentsAbstract" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_AssetsFairValueDisclosureRecurring" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetsFairValueDisclosureRecurring"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_CashAndCashEquivalentsAbstract" xlink:to="us-gaap_AssetsFairValueDisclosureRecurring" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_ItemsMeasuredAtFairValueOnARecurringBasisAtDecember312014Abstract" xlink:href="oiim-20151231.xsd#oiim_ItemsMeasuredAtFairValueOnARecurringBasisAtDecember312014Abstract"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaRecurringBasisLineItems" xlink:to="oiim_ItemsMeasuredAtFairValueOnARecurringBasisAtDecember312014Abstract" order="2" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/ItemsMeasuredatFairValueonaNonrecurringBasisTable">  
    <loc xlink:type="locator" xlink:label="oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaNonrecurringBasisLineItems" xlink:href="oiim-20151231.xsd#oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaNonrecurringBasisLineItems"/> 
    <loc xlink:type="locator" xlink:label="oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaNonrecurringBasisTable" xlink:href="oiim-20151231.xsd#oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaNonrecurringBasisTable"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaNonrecurringBasisLineItems" xlink:to="oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaNonrecurringBasisTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaNonrecurringBasisTable" xlink:to="us-gaap_FairValueByFairValueHierarchyLevelAxis" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:to="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueMeasurementsFairValueHierarchyDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:to="us-gaap_FairValueMeasurementsFairValueHierarchyDomain_0" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_BalanceSheetLocationAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BalanceSheetLocationAxis"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaNonrecurringBasisTable" xlink:to="us-gaap_BalanceSheetLocationAxis" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_BalanceSheetLocationDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_BalanceSheetLocationAxis" xlink:to="us-gaap_BalanceSheetLocationDomain" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_BalanceSheetLocationDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BalanceSheetLocationDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_BalanceSheetLocationAxis" xlink:to="us-gaap_BalanceSheetLocationDomain_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueByAssetClassAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueByAssetClassAxis"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaNonrecurringBasisTable" xlink:to="us-gaap_FairValueByAssetClassAxis" order="2" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FairValueByAssetClassAxis" xlink:to="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FairValueByAssetClassAxis" xlink:to="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_0" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_CostMethodSecuritiesMember" xlink:href="oiim-20151231.xsd#oiim_CostMethodSecuritiesMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:to="oiim_CostMethodSecuritiesMember" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:to="us-gaap_PropertyPlantAndEquipmentMember" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueInputsLevel1Member" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueInputsLevel1Member"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:to="us-gaap_FairValueInputsLevel1Member" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueInputsLevel2Member" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueInputsLevel2Member"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:to="us-gaap_FairValueInputsLevel2Member" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueInputsLevel3Member" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueInputsLevel3Member"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:to="us-gaap_FairValueInputsLevel3Member" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_OtherAssetsMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherAssetsMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BalanceSheetLocationDomain" xlink:to="us-gaap_OtherAssetsMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_LongTermInvestmentsAbstract0" xlink:href="oiim-20151231.xsd#oiim_LongTermInvestmentsAbstract0"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaNonrecurringBasisLineItems" xlink:to="oiim_LongTermInvestmentsAbstract0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_AssetsFairValueDisclosureNonrecurring" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetsFairValueDisclosureNonrecurring"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_LongTermInvestmentsAbstract0" xlink:to="us-gaap_AssetsFairValueDisclosureNonrecurring" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_AssetsFairValueDisclosureNonrecurringGainLoss" xlink:href="oiim-20151231.xsd#oiim_AssetsFairValueDisclosureNonrecurringGainLoss"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_LongTermInvestmentsAbstract0" xlink:to="oiim_AssetsFairValueDisclosureNonrecurringGainLoss" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_ItemsMeasuredAtFairValueOnANonrecurringBasisAtDecember312014Abstract" xlink:href="oiim-20151231.xsd#oiim_ItemsMeasuredAtFairValueOnANonrecurringBasisAtDecember312014Abstract"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note4FairValueMeasurementsDetailsItemsMeasuredatFairValueonaNonrecurringBasisLineItems" xlink:to="oiim_ItemsMeasuredAtFairValueOnANonrecurringBasisAtDecember312014Abstract" order="2" xbrldt:closed="true"/> 
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/SummaryofCashandCashEquivalentsTable">    
    <loc xlink:type="locator" xlink:label="oiim_SummaryOfCashAndCashEquivalentsAbstract" xlink:href="oiim-20151231.xsd#oiim_SummaryOfCashAndCashEquivalentsAbstract"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_TimeDepositsAtCarryingValue" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TimeDepositsAtCarryingValue"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfCashAndCashEquivalentsAbstract" xlink:to="us-gaap_TimeDepositsAtCarryingValue" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_DueFromBanks" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DueFromBanks"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfCashAndCashEquivalentsAbstract" xlink:to="us-gaap_DueFromBanks" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_MoneyMarketFundsAtCarryingValue" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MoneyMarketFundsAtCarryingValue"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfCashAndCashEquivalentsAbstract" xlink:to="us-gaap_MoneyMarketFundsAtCarryingValue" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_Cash" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Cash"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfCashAndCashEquivalentsAbstract" xlink:to="us-gaap_Cash" order="3" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfCashAndCashEquivalentsAbstract" xlink:to="us-gaap_CashAndCashEquivalentsAtCarryingValue" order="4" xbrldt:closed="true"/> 
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/SummaryofShorttermInvestmentsTable">  
    <loc xlink:type="locator" xlink:label="oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsLineItems" xlink:href="oiim-20151231.xsd#oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsLineItems"/>    
    <loc xlink:type="locator" xlink:label="oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsTable" xlink:href="oiim-20151231.xsd#oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsTable"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsLineItems" xlink:to="oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_InvestmentTypeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InvestmentTypeAxis"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsTable" xlink:to="us-gaap_InvestmentTypeAxis" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_InvestmentTypeCategorizationMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_InvestmentTypeAxis" xlink:to="us-gaap_InvestmentTypeCategorizationMember" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_InvestmentTypeCategorizationMember_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_InvestmentTypeAxis" xlink:to="us-gaap_InvestmentTypeCategorizationMember_0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_BankTimeDepositsMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BankTimeDepositsMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_BankTimeDepositsMember" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_AvailableForSaleSecuritiesAmortizedCost" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAmortizedCost"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsLineItems" xlink:to="us-gaap_AvailableForSaleSecuritiesAmortizedCost" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGains" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGains"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsLineItems" xlink:to="us-gaap_AvailableForSaleSecuritiesGrossUnrealizedGains" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_AvailableForSaleSecuritiesCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesCurrent"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsLineItems" xlink:to="us-gaap_AvailableForSaleSecuritiesCurrent" order="3" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_AvailableForSaleSecuritiesGrossUnrealizedLoss" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesGrossUnrealizedLoss"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsLineItems" xlink:to="us-gaap_AvailableForSaleSecuritiesGrossUnrealizedLoss" order="4" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/SummaryofShorttermInvestmentsbyContractualMaturityTable">   
    <loc xlink:type="locator" xlink:label="oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsbyContractualMaturityLineItems" xlink:href="oiim-20151231.xsd#oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsbyContractualMaturityLineItems"/> 
    <loc xlink:type="locator" xlink:label="oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsbyContractualMaturityTable" xlink:href="oiim-20151231.xsd#oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsbyContractualMaturityTable"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsbyContractualMaturityLineItems" xlink:to="oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsbyContractualMaturityTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueByMeasurementBasisAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueByMeasurementBasisAxis"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsbyContractualMaturityTable" xlink:to="us-gaap_FairValueByMeasurementBasisAxis" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueDisclosureItemAmountsDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FairValueByMeasurementBasisAxis" xlink:to="us-gaap_FairValueDisclosureItemAmountsDomain" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueDisclosureItemAmountsDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FairValueByMeasurementBasisAxis" xlink:to="us-gaap_FairValueDisclosureItemAmountsDomain_0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_InvestmentTypeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InvestmentTypeAxis"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsbyContractualMaturityTable" xlink:to="us-gaap_InvestmentTypeAxis" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_InvestmentTypeCategorizationMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_InvestmentTypeAxis" xlink:to="us-gaap_InvestmentTypeCategorizationMember" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_InvestmentTypeCategorizationMember_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_InvestmentTypeAxis" xlink:to="us-gaap_InvestmentTypeCategorizationMember_0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_InvestmentsByContractualMaturityAxis" xlink:href="oiim-20151231.xsd#oiim_InvestmentsByContractualMaturityAxis"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsbyContractualMaturityTable" xlink:to="oiim_InvestmentsByContractualMaturityAxis" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_InvestmentsByContractualMaturityDomain" xlink:href="oiim-20151231.xsd#oiim_InvestmentsByContractualMaturityDomain"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="oiim_InvestmentsByContractualMaturityAxis" xlink:to="oiim_InvestmentsByContractualMaturityDomain" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="oiim_InvestmentsByContractualMaturityDomain_0" xlink:href="oiim-20151231.xsd#oiim_InvestmentsByContractualMaturityDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="oiim_InvestmentsByContractualMaturityAxis" xlink:to="oiim_InvestmentsByContractualMaturityDomain_0" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_BankTimeDepositsMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BankTimeDepositsMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_BankTimeDepositsMember" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="oiim_DueWithinOneYearMember" xlink:href="oiim-20151231.xsd#oiim_DueWithinOneYearMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_InvestmentsByContractualMaturityDomain" xlink:to="oiim_DueWithinOneYearMember" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_DueAfterOneYearThroughTwoYearsMember" xlink:href="oiim-20151231.xsd#oiim_DueAfterOneYearThroughTwoYearsMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_InvestmentsByContractualMaturityDomain" xlink:to="oiim_DueAfterOneYearThroughTwoYearsMember" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_CostMember" xlink:href="oiim-20151231.xsd#oiim_CostMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueDisclosureItemAmountsDomain" xlink:to="oiim_CostMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_CarryingReportedAmountFairValueDisclosureMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueDisclosureItemAmountsDomain" xlink:to="us-gaap_CarryingReportedAmountFairValueDisclosureMember" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ShortTermInvestments" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShortTermInvestments"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note6ShorttermInvestmentsDetailsSummaryofShorttermInvestmentsbyContractualMaturityLineItems" xlink:to="us-gaap_ShortTermInvestments" order="1" xbrldt:closed="true"/> 
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/SummaryofInventoryTable"> 
    <loc xlink:type="locator" xlink:label="oiim_SummaryOfInventoryAbstract" xlink:href="oiim-20151231.xsd#oiim_SummaryOfInventoryAbstract"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_InventoryFinishedGoods" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryFinishedGoods"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfInventoryAbstract" xlink:to="us-gaap_InventoryFinishedGoods" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_InventoryWorkInProcess" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryWorkInProcess"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfInventoryAbstract" xlink:to="us-gaap_InventoryWorkInProcess" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_InventoryRawMaterials" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryRawMaterials"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfInventoryAbstract" xlink:to="us-gaap_InventoryRawMaterials" order="2" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_InventoryNet" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InventoryNet"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfInventoryAbstract" xlink:to="us-gaap_InventoryNet" order="3" xbrldt:closed="true"/>   
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/SummaryofPrepaidExpensesandOtherCurrentAssetsTable">   
    <loc xlink:type="locator" xlink:label="oiim_SummaryOfPrepaidExpensesAndOtherCurrentAssetsAbstract" xlink:href="oiim-20151231.xsd#oiim_SummaryOfPrepaidExpensesAndOtherCurrentAssetsAbstract"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_PrepaidExpenseCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PrepaidExpenseCurrent"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfPrepaidExpensesAndOtherCurrentAssetsAbstract" xlink:to="us-gaap_PrepaidExpenseCurrent" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="oiim_PaymentInAdvanceCurrent" xlink:href="oiim-20151231.xsd#oiim_PaymentInAdvanceCurrent"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfPrepaidExpensesAndOtherCurrentAssetsAbstract" xlink:to="oiim_PaymentInAdvanceCurrent" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_OtherReceivables" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherReceivables"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfPrepaidExpensesAndOtherCurrentAssetsAbstract" xlink:to="us-gaap_OtherReceivables" order="2" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_InterestReceivable" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterestReceivable"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfPrepaidExpensesAndOtherCurrentAssetsAbstract" xlink:to="us-gaap_InterestReceivable" order="3" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_DeferredTaxAssetsNetCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsNetCurrent"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfPrepaidExpensesAndOtherCurrentAssetsAbstract" xlink:to="us-gaap_DeferredTaxAssetsNetCurrent" order="4" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeTaxesReceivable" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxesReceivable"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfPrepaidExpensesAndOtherCurrentAssetsAbstract" xlink:to="us-gaap_IncomeTaxesReceivable" order="5" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_OtherAssets" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherAssets"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfPrepaidExpensesAndOtherCurrentAssetsAbstract" xlink:to="us-gaap_OtherAssets" order="6" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_PrepaidExpenseAndOtherAssets" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssets"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfPrepaidExpensesAndOtherCurrentAssetsAbstract" xlink:to="us-gaap_PrepaidExpenseAndOtherAssets" order="7" xbrldt:closed="true"/> 
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/LongtermInvestmentsTable">  
    <loc xlink:type="locator" xlink:label="oiim_Note9LongtermInvestmentsDetailsLongtermInvestmentsLineItems" xlink:href="oiim-20151231.xsd#oiim_Note9LongtermInvestmentsDetailsLongtermInvestmentsLineItems"/>  
    <loc xlink:type="locator" xlink:label="oiim_Note9LongtermInvestmentsDetailsLongtermInvestmentsTable" xlink:href="oiim-20151231.xsd#oiim_Note9LongtermInvestmentsDetailsLongtermInvestmentsTable"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note9LongtermInvestmentsDetailsLongtermInvestmentsLineItems" xlink:to="oiim_Note9LongtermInvestmentsDetailsLongtermInvestmentsTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="invest_InvestmentHoldingAxis" xlink:href="http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_InvestmentHoldingAxis"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note9LongtermInvestmentsDetailsLongtermInvestmentsTable" xlink:to="invest_InvestmentHoldingAxis" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="invest_InvestmentHoldingDomain" xlink:href="http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_InvestmentHoldingDomain"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="invest_InvestmentHoldingAxis" xlink:to="invest_InvestmentHoldingDomain" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="invest_InvestmentHoldingDomain_0" xlink:href="http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_InvestmentHoldingDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="invest_InvestmentHoldingAxis" xlink:to="invest_InvestmentHoldingDomain_0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note9LongtermInvestmentsDetailsLongtermInvestmentsTable" xlink:to="us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis" xlink:to="us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis" xlink:to="us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="oiim_EtrendMember" xlink:href="oiim-20151231.xsd#oiim_EtrendMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:to="oiim_EtrendMember" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_SigurdCaymanMember" xlink:href="oiim-20151231.xsd#oiim_SigurdCaymanMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_SigurdCaymanMember" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_XFABMember" xlink:href="oiim-20151231.xsd#oiim_XFABMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_XFABMember" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_PVEFMember" xlink:href="oiim-20151231.xsd#oiim_PVEFMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_PVEFMember" order="2" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_GEMMember" xlink:href="oiim-20151231.xsd#oiim_GEMMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_GEMMember" order="3" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_EMCMember" xlink:href="oiim-20151231.xsd#oiim_EMCMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_EMCMember" order="4" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_VerticilMember" xlink:href="oiim-20151231.xsd#oiim_VerticilMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_VerticilMember" order="5" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_SinomosMember" xlink:href="oiim-20151231.xsd#oiim_SinomosMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_SinomosMember" order="6" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_SiGenMember" xlink:href="oiim-20151231.xsd#oiim_SiGenMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_SiGenMember" order="7" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_TotalCostMethodInvestmentsMember" xlink:href="oiim-20151231.xsd#oiim_TotalCostMethodInvestmentsMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_TotalCostMethodInvestmentsMember" order="8" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="oiim_TotalLongTermInvestmentsMember" xlink:href="oiim-20151231.xsd#oiim_TotalLongTermInvestmentsMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_TotalLongTermInvestmentsMember" order="9" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_CostMethodAbstract" xlink:href="oiim-20151231.xsd#oiim_CostMethodAbstract"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLongtermInvestmentsLineItems" xlink:to="oiim_CostMethodAbstract" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_CostMethodInvestments" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CostMethodInvestments"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLongtermInvestmentsLineItems" xlink:to="us-gaap_CostMethodInvestments" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_AvailableForSaleSecuritiesNoncurrentAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesNoncurrentAbstract"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLongtermInvestmentsLineItems" xlink:to="us-gaap_AvailableForSaleSecuritiesNoncurrentAbstract" order="3" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_AvailableForSaleSecuritiesNoncurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesNoncurrent"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLongtermInvestmentsLineItems" xlink:to="us-gaap_AvailableForSaleSecuritiesNoncurrent" order="4" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/GrossUnrealizedGainsandLossofAvailableforsaleSecuritiesTable">   
    <loc xlink:type="locator" xlink:label="oiim_GrossUnrealizedGainsAndLossOfAvailableForSaleSecuritiesAbstract" xlink:href="oiim-20151231.xsd#oiim_GrossUnrealizedGainsAndLossOfAvailableForSaleSecuritiesAbstract"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainLossBeforeTax" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainLossBeforeTax"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_GrossUnrealizedGainsAndLossOfAvailableForSaleSecuritiesAbstract" xlink:to="us-gaap_AvailableForSaleSecuritiesAccumulatedGrossUnrealizedGainLossBeforeTax" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_OtherComprehensiveIncomeUnrealizedHoldingGainOnSecuritiesArisingDuringPeriodNetOfTax" xlink:href="oiim-20151231.xsd#oiim_OtherComprehensiveIncomeUnrealizedHoldingGainOnSecuritiesArisingDuringPeriodNetOfTax"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_GrossUnrealizedGainsAndLossOfAvailableForSaleSecuritiesAbstract" xlink:to="oiim_OtherComprehensiveIncomeUnrealizedHoldingGainOnSecuritiesArisingDuringPeriodNetOfTax" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_GrossUnrealizedGainsAndLossOfAvailableForSaleSecuritiesAbstract" xlink:to="us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesNetOfTax" order="2" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/SummaryofPropertyandEquipmentNetTable">     
    <loc xlink:type="locator" xlink:label="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems" xlink:href="oiim-20151231.xsd#oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems"/>   
    <loc xlink:type="locator" xlink:label="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetTable" xlink:href="oiim-20151231.xsd#oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetTable"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems" xlink:to="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetTable" xlink:to="us-gaap_PropertyPlantAndEquipmentByTypeAxis" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:to="us-gaap_PropertyPlantAndEquipmentTypeDomain" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentTypeDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:to="us-gaap_PropertyPlantAndEquipmentTypeDomain_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_FurnitureAndFixturesMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FurnitureAndFixturesMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:to="us-gaap_FurnitureAndFixturesMember" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_LeaseholdImprovementsMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LeaseholdImprovementsMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:to="us-gaap_LeaseholdImprovementsMember" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_TransportationEquipmentMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TransportationEquipmentMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:to="us-gaap_TransportationEquipmentMember" order="2" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_PropertyLeasedToOthersMember" xlink:href="oiim-20151231.xsd#oiim_PropertyLeasedToOthersMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:to="oiim_PropertyLeasedToOthersMember" order="3" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_CostAbstract" xlink:href="oiim-20151231.xsd#oiim_CostAbstract"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems" xlink:to="oiim_CostAbstract" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_Land" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Land"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems" xlink:to="us-gaap_Land" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_BuildingsAndImprovementsGross" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BuildingsAndImprovementsGross"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems" xlink:to="us-gaap_BuildingsAndImprovementsGross" order="3" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_MachineryAndEquipmentGross" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MachineryAndEquipmentGross"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems" xlink:to="us-gaap_MachineryAndEquipmentGross" order="4" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_FurnitureAndFixturesGross" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FurnitureAndFixturesGross"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems" xlink:to="us-gaap_FurnitureAndFixturesGross" order="5" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_LeaseholdImprovementsGross" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LeaseholdImprovementsGross"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems" xlink:to="us-gaap_LeaseholdImprovementsGross" order="6" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentOther" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentOther"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems" xlink:to="us-gaap_PropertyPlantAndEquipmentOther" order="7" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_PropertyLeasedToOthers" xlink:href="oiim-20151231.xsd#oiim_PropertyLeasedToOthers"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems" xlink:to="oiim_PropertyLeasedToOthers" order="8" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_PrepaymentForPropertyAndEquipment" xlink:href="oiim-20151231.xsd#oiim_PrepaymentForPropertyAndEquipment"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems" xlink:to="oiim_PrepaymentForPropertyAndEquipment" order="9" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentGross" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems" xlink:to="us-gaap_PropertyPlantAndEquipmentGross" order="10" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_AccumulatedDepreciationAbstract" xlink:href="oiim-20151231.xsd#oiim_AccumulatedDepreciationAbstract"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems" xlink:to="oiim_AccumulatedDepreciationAbstract" order="11" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_RealEstateOwnedAccumulatedDepreciation" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RealEstateOwnedAccumulatedDepreciation"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems" xlink:to="us-gaap_RealEstateOwnedAccumulatedDepreciation" order="12" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentOwnedAccumulatedDepreciation" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentOwnedAccumulatedDepreciation"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems" xlink:to="us-gaap_PropertyPlantAndEquipmentOwnedAccumulatedDepreciation" order="13" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentOtherAccumulatedDepreciation" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentOtherAccumulatedDepreciation"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems" xlink:to="us-gaap_PropertyPlantAndEquipmentOtherAccumulatedDepreciation" order="14" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems" xlink:to="us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" order="15" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentNet" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsSummaryofPropertyandEquipmentNetLineItems" xlink:to="us-gaap_PropertyPlantAndEquipmentNet" order="16" xbrldt:closed="true"/> 
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/SummaryofOtherAssetsTable">   
    <loc xlink:type="locator" xlink:label="oiim_Note11OtherAssetsDetailsSummaryofOtherAssetsLineItems" xlink:href="oiim-20151231.xsd#oiim_Note11OtherAssetsDetailsSummaryofOtherAssetsLineItems"/>     
    <loc xlink:type="locator" xlink:label="oiim_Note11OtherAssetsDetailsSummaryofOtherAssetsTable" xlink:href="oiim-20151231.xsd#oiim_Note11OtherAssetsDetailsSummaryofOtherAssetsTable"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note11OtherAssetsDetailsSummaryofOtherAssetsLineItems" xlink:to="oiim_Note11OtherAssetsDetailsSummaryofOtherAssetsTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_OtherAssetsAxis" xlink:href="oiim-20151231.xsd#oiim_OtherAssetsAxis"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note11OtherAssetsDetailsSummaryofOtherAssetsTable" xlink:to="oiim_OtherAssetsAxis" order="0" xbrldt:closed="true"/>  
<!-- [WMV4][XcpuxYn59dz7vgYynUDuwG7r97K2jUTysl7vcz0lJt8UCLPdYZl35nXbOCDIyGTqrowG2INEsunomyu23TgMMkIvj0OYAgwKRa09rUQO1EdrJS6FwcAUlSZhZTPNOxhaagUAiegD/MQpuq7cmK3mWKKwxU2mTnbJpm3VVwKRB28P+HOzYf5NLPU9SFuEj2p+YghMcZAlpQej4mheIp3lRjdXC8RkimuK+NK6XvSuVcFiW4letH3QX8GU4A8yJRYH] CSR-->  
    <loc xlink:type="locator" xlink:label="oiim_OtherAssetsDomain" xlink:href="oiim-20151231.xsd#oiim_OtherAssetsDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="oiim_OtherAssetsAxis" xlink:to="oiim_OtherAssetsDomain" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_OtherAssetsDomain_0" xlink:href="oiim-20151231.xsd#oiim_OtherAssetsDomain"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="oiim_OtherAssetsAxis" xlink:to="oiim_OtherAssetsDomain_0" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_DeferredChargesMember" xlink:href="oiim-20151231.xsd#oiim_DeferredChargesMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_OtherAssetsDomain" xlink:to="oiim_DeferredChargesMember" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_UseRightsMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_UseRightsMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_OtherAssetsDomain" xlink:to="us-gaap_UseRightsMember" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_RefundableDepositsMember" xlink:href="oiim-20151231.xsd#oiim_RefundableDepositsMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_OtherAssetsDomain" xlink:to="oiim_RefundableDepositsMember" order="2" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_DeferredIncomeTaxAssetsNoncurrentMember" xlink:href="oiim-20151231.xsd#oiim_DeferredIncomeTaxAssetsNoncurrentMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_OtherAssetsDomain" xlink:to="oiim_DeferredIncomeTaxAssetsNoncurrentMember" order="3" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_OtherAssetsNoncurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherAssetsNoncurrent"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note11OtherAssetsDetailsSummaryofOtherAssetsLineItems" xlink:to="us-gaap_OtherAssetsNoncurrent" order="1" xbrldt:closed="true"/>    
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/SummaryofAccruedExpensesandOtherCurrentLiabilitiesTable">   
    <loc xlink:type="locator" xlink:label="oiim_SummaryOfAccruedExpensesAndOtherCurrentLiabilitiesAbstract" xlink:href="oiim-20151231.xsd#oiim_SummaryOfAccruedExpensesAndOtherCurrentLiabilitiesAbstract"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_EmployeeRelatedLiabilitiesCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfAccruedExpensesAndOtherCurrentLiabilitiesAbstract" xlink:to="us-gaap_EmployeeRelatedLiabilitiesCurrent" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_DeferredTaxLiabilitiesNoncurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxLiabilitiesNoncurrent"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfAccruedExpensesAndOtherCurrentLiabilitiesAbstract" xlink:to="us-gaap_DeferredTaxLiabilitiesNoncurrent" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_EngineeringRelatedExpensesCurrent" xlink:href="oiim-20151231.xsd#oiim_EngineeringRelatedExpensesCurrent"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfAccruedExpensesAndOtherCurrentLiabilitiesAbstract" xlink:to="oiim_EngineeringRelatedExpensesCurrent" order="2" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_ConsultingFeesCurrent" xlink:href="oiim-20151231.xsd#oiim_ConsultingFeesCurrent"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfAccruedExpensesAndOtherCurrentLiabilitiesAbstract" xlink:to="oiim_ConsultingFeesCurrent" order="3" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_AccruedProfessionalFeesCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccruedProfessionalFeesCurrent"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfAccruedExpensesAndOtherCurrentLiabilitiesAbstract" xlink:to="us-gaap_AccruedProfessionalFeesCurrent" order="4" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_ShippingExpensesCurrent" xlink:href="oiim-20151231.xsd#oiim_ShippingExpensesCurrent"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfAccruedExpensesAndOtherCurrentLiabilitiesAbstract" xlink:to="oiim_ShippingExpensesCurrent" order="5" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_AccruedPayrollTaxesCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccruedPayrollTaxesCurrent"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfAccruedExpensesAndOtherCurrentLiabilitiesAbstract" xlink:to="us-gaap_AccruedPayrollTaxesCurrent" order="6" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="oiim_PromotionalExpensesCurrent" xlink:href="oiim-20151231.xsd#oiim_PromotionalExpensesCurrent"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfAccruedExpensesAndOtherCurrentLiabilitiesAbstract" xlink:to="oiim_PromotionalExpensesCurrent" order="7" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_AccrualForTaxesOtherThanIncomeTaxesCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccrualForTaxesOtherThanIncomeTaxesCurrent"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfAccruedExpensesAndOtherCurrentLiabilitiesAbstract" xlink:to="us-gaap_AccrualForTaxesOtherThanIncomeTaxesCurrent" order="8" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_OtherAccruedLiabilitiesCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfAccruedExpensesAndOtherCurrentLiabilitiesAbstract" xlink:to="us-gaap_OtherAccruedLiabilitiesCurrent" order="9" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfAccruedExpensesAndOtherCurrentLiabilitiesAbstract" xlink:to="us-gaap_AccountsPayableAndAccruedLiabilitiesCurrent" order="10" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/SummaryofIncomeLossBeforeIncomeTaxesfromContinuingOperationsTable">   
    <loc xlink:type="locator" xlink:label="oiim_SummaryOfIncomeLossBeforeIncomeTaxesFromContinuingOperationsAbstract" xlink:href="oiim-20151231.xsd#oiim_SummaryOfIncomeLossBeforeIncomeTaxesFromContinuingOperationsAbstract"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfIncomeLossBeforeIncomeTaxesFromContinuingOperationsAbstract" xlink:to="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfIncomeLossBeforeIncomeTaxesFromContinuingOperationsAbstract" xlink:to="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesForeign" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfIncomeLossBeforeIncomeTaxesFromContinuingOperationsAbstract" xlink:to="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" order="2" xbrldt:closed="true"/>    
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/SummaryofIncomeTaxExpensefromContinuingOperationsTable">  
    <loc xlink:type="locator" xlink:label="oiim_SummaryOfIncomeTaxExpenseFromContinuingOperationsAbstract" xlink:href="oiim-20151231.xsd#oiim_SummaryOfIncomeTaxExpenseFromContinuingOperationsAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_CurrentFederalTaxExpenseBenefit" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CurrentFederalTaxExpenseBenefit"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfIncomeTaxExpenseFromContinuingOperationsAbstract" xlink:to="us-gaap_CurrentFederalTaxExpenseBenefit" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_DeferredFederalIncomeTaxExpenseBenefit" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfIncomeTaxExpenseFromContinuingOperationsAbstract" xlink:to="us-gaap_DeferredFederalIncomeTaxExpenseBenefit" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeTaxExpenseBenefit" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfIncomeTaxExpenseFromContinuingOperationsAbstract" xlink:to="us-gaap_IncomeTaxExpenseBenefit" order="2" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/ReconciliationBetweenStatutoryIncomeTaxRateandtheEffectiveIncomeTaxRateTable">    
    <loc xlink:type="locator" xlink:label="oiim_ReconciliationBetweenStatutoryIncomeTaxRateAndTheEffectiveIncomeTaxRateAbstract" xlink:href="oiim-20151231.xsd#oiim_ReconciliationBetweenStatutoryIncomeTaxRateAndTheEffectiveIncomeTaxRateAbstract"/>  
    <loc xlink:type="locator" xlink:label="oiim_IncreaseDecreaseInTaxResultingFromAbstract" xlink:href="oiim-20151231.xsd#oiim_IncreaseDecreaseInTaxResultingFromAbstract"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ReconciliationBetweenStatutoryIncomeTaxRateAndTheEffectiveIncomeTaxRateAbstract" xlink:to="oiim_IncreaseDecreaseInTaxResultingFromAbstract" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_IncreaseDecreaseInTaxResultingFromAbstract" xlink:to="us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_EffectiveIncomeTaxRateReconcilationChangesInDeferredIncomeTaxAssets" xlink:href="oiim-20151231.xsd#oiim_EffectiveIncomeTaxRateReconcilationChangesInDeferredIncomeTaxAssets"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_IncreaseDecreaseInTaxResultingFromAbstract" xlink:to="oiim_EffectiveIncomeTaxRateReconcilationChangesInDeferredIncomeTaxAssets" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeTaxReconciliationPriorYearIncomeTaxes" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxReconciliationPriorYearIncomeTaxes"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_IncreaseDecreaseInTaxResultingFromAbstract" xlink:to="us-gaap_IncomeTaxReconciliationPriorYearIncomeTaxes" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_IncreaseDecreaseInTaxResultingFromAbstract" xlink:to="us-gaap_IncomeTaxReconciliationChangeInDeferredTaxAssetsValuationAllowance" order="3" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeTaxReconciliationRepatriationOfForeignEarnings" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxReconciliationRepatriationOfForeignEarnings"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_IncreaseDecreaseInTaxResultingFromAbstract" xlink:to="us-gaap_IncomeTaxReconciliationRepatriationOfForeignEarnings" order="4" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeTaxReconciliationOtherAdjustments" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxReconciliationOtherAdjustments"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_IncreaseDecreaseInTaxResultingFromAbstract" xlink:to="us-gaap_IncomeTaxReconciliationOtherAdjustments" order="5" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeTaxExpenseBenefit" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_IncreaseDecreaseInTaxResultingFromAbstract" xlink:to="us-gaap_IncomeTaxExpenseBenefit" order="6" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/SummaryofDeferredTaxAssetsandLiabilitiesTable">   
    <loc xlink:type="locator" xlink:label="oiim_SummaryOfDeferredTaxAssetsAndLiabilitiesAbstract" xlink:href="oiim-20151231.xsd#oiim_SummaryOfDeferredTaxAssetsAndLiabilitiesAbstract"/>     
    <loc xlink:type="locator" xlink:label="oiim_DeferredIncomeTaxAssetsAbstract" xlink:href="oiim-20151231.xsd#oiim_DeferredIncomeTaxAssetsAbstract"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfDeferredTaxAssetsAndLiabilitiesAbstract" xlink:to="oiim_DeferredIncomeTaxAssetsAbstract" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_DeferredTaxAssetsTaxCreditCarryforwards" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwards"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_DeferredIncomeTaxAssetsAbstract" xlink:to="us-gaap_DeferredTaxAssetsTaxCreditCarryforwards" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_DeferredTaxAssetsOperatingLossCarryforwards" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_DeferredIncomeTaxAssetsAbstract" xlink:to="us-gaap_DeferredTaxAssetsOperatingLossCarryforwards" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_DeferredTaxAssetsTaxDeferredExpenseOther" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseOther"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_DeferredIncomeTaxAssetsAbstract" xlink:to="us-gaap_DeferredTaxAssetsTaxDeferredExpenseOther" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_DeferredIncomeTaxAssetsAbstract" xlink:to="us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsEmployeeCompensation" order="3" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_DeferredTaxAssetsGross" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsGross"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_DeferredIncomeTaxAssetsAbstract" xlink:to="us-gaap_DeferredTaxAssetsGross" order="4" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_DeferredTaxAssetsValuationAllowance" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfDeferredTaxAssetsAndLiabilitiesAbstract" xlink:to="us-gaap_DeferredTaxAssetsValuationAllowance" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_DeferredTaxAssetsNet" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsNet"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfDeferredTaxAssetsAndLiabilitiesAbstract" xlink:to="us-gaap_DeferredTaxAssetsNet" order="2" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_DeferredIncomeTaxLiabilitiesAbstract" xlink:href="oiim-20151231.xsd#oiim_DeferredIncomeTaxLiabilitiesAbstract"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfDeferredTaxAssetsAndLiabilitiesAbstract" xlink:to="oiim_DeferredIncomeTaxLiabilitiesAbstract" order="3" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_DeferredTaxLiabilityWithholdingTaxesOnRepatriationOfSubsidiaryProfits" xlink:href="oiim-20151231.xsd#oiim_DeferredTaxLiabilityWithholdingTaxesOnRepatriationOfSubsidiaryProfits"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_DeferredIncomeTaxLiabilitiesAbstract" xlink:to="oiim_DeferredTaxLiabilityWithholdingTaxesOnRepatriationOfSubsidiaryProfits" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_DeferredTaxLiabilitiesUnrealizedCurrencyTransactionGains" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxLiabilitiesUnrealizedCurrencyTransactionGains"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_DeferredIncomeTaxLiabilitiesAbstract" xlink:to="us-gaap_DeferredTaxLiabilitiesUnrealizedCurrencyTransactionGains" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_DeferredTaxLiabilitiesUnrealizedCapitalAllowance" xlink:href="oiim-20151231.xsd#oiim_DeferredTaxLiabilitiesUnrealizedCapitalAllowance"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_DeferredIncomeTaxLiabilitiesAbstract" xlink:to="oiim_DeferredTaxLiabilitiesUnrealizedCapitalAllowance" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_DeferredTaxLiabilities" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxLiabilities"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_DeferredIncomeTaxLiabilitiesAbstract" xlink:to="us-gaap_DeferredTaxLiabilities" order="3" xbrldt:closed="true"/>   
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/PercentageofMajorCategoryofPlanAssetsUnderReviewTable"> 
    <loc xlink:type="locator" xlink:label="oiim_Note14RetirementandPensionPlansDetailsPercentageofMajorCategoryofPlanAssetsUnderReviewLineItems" xlink:href="oiim-20151231.xsd#oiim_Note14RetirementandPensionPlansDetailsPercentageofMajorCategoryofPlanAssetsUnderReviewLineItems"/>    
    <loc xlink:type="locator" xlink:label="oiim_Note14RetirementandPensionPlansDetailsPercentageofMajorCategoryofPlanAssetsUnderReviewTable" xlink:href="oiim-20151231.xsd#oiim_Note14RetirementandPensionPlansDetailsPercentageofMajorCategoryofPlanAssetsUnderReviewTable"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note14RetirementandPensionPlansDetailsPercentageofMajorCategoryofPlanAssetsUnderReviewLineItems" xlink:to="oiim_Note14RetirementandPensionPlansDetailsPercentageofMajorCategoryofPlanAssetsUnderReviewTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note14RetirementandPensionPlansDetailsPercentageofMajorCategoryofPlanAssetsUnderReviewTable" xlink:to="us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_PlanAssetCategoriesDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PlanAssetCategoriesDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis" xlink:to="us-gaap_PlanAssetCategoriesDomain" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_PlanAssetCategoriesDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PlanAssetCategoriesDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis" xlink:to="us-gaap_PlanAssetCategoriesDomain_0" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_CashMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PlanAssetCategoriesDomain" xlink:to="us-gaap_CashMember" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_DebtSecuritiesMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DebtSecuritiesMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PlanAssetCategoriesDomain" xlink:to="us-gaap_DebtSecuritiesMember" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_EquitySecuritiesMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquitySecuritiesMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PlanAssetCategoriesDomain" xlink:to="us-gaap_EquitySecuritiesMember" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanTargetPlanAssetAllocations" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanTargetPlanAssetAllocations"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note14RetirementandPensionPlansDetailsPercentageofMajorCategoryofPlanAssetsUnderReviewLineItems" xlink:to="us-gaap_DefinedBenefitPlanTargetPlanAssetAllocations" order="1" xbrldt:closed="true"/>    
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/ChangesinProjectedBenefitObligationandPlanAssetsTable"> 
    <loc xlink:type="locator" xlink:label="oiim_ChangesInProjectedBenefitObligationAndPlanAssetsAbstract" xlink:href="oiim-20151231.xsd#oiim_ChangesInProjectedBenefitObligationAndPlanAssetsAbstract"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanBenefitObligation" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ChangesInProjectedBenefitObligationAndPlanAssetsAbstract" xlink:to="us-gaap_DefinedBenefitPlanBenefitObligation" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanServiceCost" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ChangesInProjectedBenefitObligationAndPlanAssetsAbstract" xlink:to="us-gaap_DefinedBenefitPlanServiceCost" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanInterestCost" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ChangesInProjectedBenefitObligationAndPlanAssetsAbstract" xlink:to="us-gaap_DefinedBenefitPlanInterestCost" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanActuarialGainLoss" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanActuarialGainLoss"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ChangesInProjectedBenefitObligationAndPlanAssetsAbstract" xlink:to="us-gaap_DefinedBenefitPlanActuarialGainLoss" order="3" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanForeignCurrencyExchangeRateChangesBenefitObligation" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanForeignCurrencyExchangeRateChangesBenefitObligation"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ChangesInProjectedBenefitObligationAndPlanAssetsAbstract" xlink:to="us-gaap_DefinedBenefitPlanForeignCurrencyExchangeRateChangesBenefitObligation" order="4" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanFairValueOfPlanAssets" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ChangesInProjectedBenefitObligationAndPlanAssetsAbstract" xlink:to="us-gaap_DefinedBenefitPlanFairValueOfPlanAssets" order="5" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanContributionsByEmployer" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanContributionsByEmployer"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ChangesInProjectedBenefitObligationAndPlanAssetsAbstract" xlink:to="us-gaap_DefinedBenefitPlanContributionsByEmployer" order="6" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ChangesInProjectedBenefitObligationAndPlanAssetsAbstract" xlink:to="us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets" order="7" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanForeignCurrencyExchangeRateChangesPlanAssets" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanForeignCurrencyExchangeRateChangesPlanAssets"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ChangesInProjectedBenefitObligationAndPlanAssetsAbstract" xlink:to="us-gaap_DefinedBenefitPlanForeignCurrencyExchangeRateChangesPlanAssets" order="8" xbrldt:closed="true"/>   
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/SummaryofNetPeriodicBenefitCostTable">    
    <loc xlink:type="locator" xlink:label="oiim_SummaryOfNetPeriodicBenefitCostAbstract" xlink:href="oiim-20151231.xsd#oiim_SummaryOfNetPeriodicBenefitCostAbstract"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanServiceCost" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfNetPeriodicBenefitCostAbstract" xlink:to="us-gaap_DefinedBenefitPlanServiceCost" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanInterestCost" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfNetPeriodicBenefitCostAbstract" xlink:to="us-gaap_DefinedBenefitPlanInterestCost" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfNetPeriodicBenefitCostAbstract" xlink:to="us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets" order="2" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanFutureAmortizationOfGainLoss" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanFutureAmortizationOfGainLoss"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfNetPeriodicBenefitCostAbstract" xlink:to="us-gaap_DefinedBenefitPlanFutureAmortizationOfGainLoss" order="3" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfNetPeriodicBenefitCostAbstract" xlink:to="us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost" order="4" xbrldt:closed="true"/>    
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/SummaryofFundedStatusofthePlanTable">   
    <loc xlink:type="locator" xlink:label="oiim_SummaryOfFundedStatusOfThePlanAbstract" xlink:href="oiim-20151231.xsd#oiim_SummaryOfFundedStatusOfThePlanAbstract"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfFundedStatusOfThePlanAbstract" xlink:to="us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanBenefitObligation" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfFundedStatusOfThePlanAbstract" xlink:to="us-gaap_DefinedBenefitPlanBenefitObligation" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanFairValueOfPlanAssets" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfFundedStatusOfThePlanAbstract" xlink:to="us-gaap_DefinedBenefitPlanFairValueOfPlanAssets" order="2" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanFundedStatusOfPlan" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfFundedStatusOfThePlanAbstract" xlink:to="us-gaap_DefinedBenefitPlanFundedStatusOfPlan" order="3" xbrldt:closed="true"/>    
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/ActuarialAssumptionstoDetermineBenefitObligationsUnderReviewTable">   
    <loc xlink:type="locator" xlink:label="oiim_ActuarialAssumptionsToDetermineBenefitObligationsUnderReviewAbstract" xlink:href="oiim-20151231.xsd#oiim_ActuarialAssumptionsToDetermineBenefitObligationsUnderReviewAbstract"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ActuarialAssumptionsToDetermineBenefitObligationsUnderReviewAbstract" xlink:to="us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ActuarialAssumptionsToDetermineBenefitObligationsUnderReviewAbstract" xlink:to="us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease" order="1" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/ActuarialAssumptionstoDeterminetheNetPeriodicBenefitCostUnderReviewTable">     
    <loc xlink:type="locator" xlink:label="oiim_ActuarialAssumptionsToDetermineTheNetPeriodicBenefitCostUnderReviewAbstract" xlink:href="oiim-20151231.xsd#oiim_ActuarialAssumptionsToDetermineTheNetPeriodicBenefitCostUnderReviewAbstract"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ActuarialAssumptionsToDetermineTheNetPeriodicBenefitCostUnderReviewAbstract" xlink:to="us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ActuarialAssumptionsToDetermineTheNetPeriodicBenefitCostUnderReviewAbstract" xlink:to="us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_ActuarialAssumptionsToDetermineTheNetPeriodicBenefitCostUnderReviewAbstract" xlink:to="us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets" order="2" xbrldt:closed="true"/> 
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/SummaryofEstimatedFutureBenefitPaymentsTable">  
    <loc xlink:type="locator" xlink:label="oiim_SummaryOfEstimatedFutureBenefitPaymentsAbstract" xlink:href="oiim-20151231.xsd#oiim_SummaryOfEstimatedFutureBenefitPaymentsAbstract"/>   
    <loc xlink:type="locator" xlink:label="oiim_YearAbstract" xlink:href="oiim-20151231.xsd#oiim_YearAbstract"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfEstimatedFutureBenefitPaymentsAbstract" xlink:to="oiim_YearAbstract" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfEstimatedFutureBenefitPaymentsAbstract" xlink:to="us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfEstimatedFutureBenefitPaymentsAbstract" xlink:to="us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfEstimatedFutureBenefitPaymentsAbstract" xlink:to="us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree" order="3" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_SummaryOfEstimatedFutureBenefitPaymentsAbstract" xlink:to="us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour" order="4" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour" xlink:to="us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter" order="0" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/StockOptionActivityTable">  
    <loc xlink:type="locator" xlink:label="oiim_StockOptionActivityAbstract" xlink:href="oiim-20151231.xsd#oiim_StockOptionActivityAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_StockOptionActivityAbstract" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_StockOptionActivityAbstract" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_StockOptionActivityAbstract" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_StockOptionActivityAbstract" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" order="3" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_StockOptionActivityAbstract" xlink:to="us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" order="4" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_StockOptionActivityAbstract" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice" order="5" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriod" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriod"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_StockOptionActivityAbstract" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriod" order="6" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriodWeightedAverageExercisePrice" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriodWeightedAverageExercisePrice"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_StockOptionActivityAbstract" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriodWeightedAverageExercisePrice" order="7" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_StockOptionActivityAbstract" xlink:to="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2" order="8" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_StockOptionActivityAbstract" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber" order="9" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_StockOptionActivityAbstract" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageExercisePrice" order="10" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_StockOptionActivityAbstract" xlink:to="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1" order="11" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_StockOptionActivityAbstract" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber" order="12" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_StockOptionActivityAbstract" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice" order="13" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_StockOptionActivityAbstract" xlink:to="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1" order="14" xbrldt:closed="true"/>   
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/OptionsOutstandingandVestedStockOptionsTable">  
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeTable" xlink:to="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:to="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansByExercisePriceRangeAxis" xlink:to="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain_0" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_ExercisePriceRange1Member" xlink:href="oiim-20151231.xsd#oiim_ExercisePriceRange1Member"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="oiim_ExercisePriceRange1Member" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_ExercisePriceRange2Member" xlink:href="oiim-20151231.xsd#oiim_ExercisePriceRange2Member"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="oiim_ExercisePriceRange2Member" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_ExercisePriceRange3Member" xlink:href="oiim-20151231.xsd#oiim_ExercisePriceRange3Member"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="oiim_ExercisePriceRange3Member" order="2" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_ExercisePriceRange4Member" xlink:href="oiim-20151231.xsd#oiim_ExercisePriceRange4Member"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="oiim_ExercisePriceRange4Member" order="3" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_ExercisePriceRange5Member" xlink:href="oiim-20151231.xsd#oiim_ExercisePriceRange5Member"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeDomain" xlink:to="oiim_ExercisePriceRange5Member" order="4" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfOutstandingOptions" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfOutstandingOptions"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfOutstandingOptions" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2" order="2" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice" order="3" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfExercisableOptions" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfExercisableOptions"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeNumberOfExercisableOptions" order="4" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice" order="5" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/FairValueAssumptionsofStockOptionsandESOPTable">    
    <loc xlink:type="locator" xlink:label="oiim_Note15StockbasedCompensationDetailsFairValueAssumptionsofStockOptionsandESOPLineItems" xlink:href="oiim-20151231.xsd#oiim_Note15StockbasedCompensationDetailsFairValueAssumptionsofStockOptionsandESOPLineItems"/>    
    <loc xlink:type="locator" xlink:label="oiim_Note15StockbasedCompensationDetailsFairValueAssumptionsofStockOptionsandESOPTable" xlink:href="oiim-20151231.xsd#oiim_Note15StockbasedCompensationDetailsFairValueAssumptionsofStockOptionsandESOPTable"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note15StockbasedCompensationDetailsFairValueAssumptionsofStockOptionsandESOPLineItems" xlink:to="oiim_Note15StockbasedCompensationDetailsFairValueAssumptionsofStockOptionsandESOPTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_RangeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note15StockbasedCompensationDetailsFairValueAssumptionsofStockOptionsandESOPTable" xlink:to="us-gaap_RangeAxis" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_RangeMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_RangeAxis" xlink:to="us-gaap_RangeMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_RangeMember_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_RangeAxis" xlink:to="us-gaap_RangeMember_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_AwardTypeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note15StockbasedCompensationDetailsFairValueAssumptionsofStockOptionsandESOPTable" xlink:to="us-gaap_AwardTypeAxis" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresByPlanAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresByPlanAxis"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note15StockbasedCompensationDetailsFairValueAssumptionsofStockOptionsandESOPTable" xlink:to="us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresByPlanAxis" order="2" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_EmployeeStockOwnershipPlanESOPPlanDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOwnershipPlanESOPPlanDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresByPlanAxis" xlink:to="us-gaap_EmployeeStockOwnershipPlanESOPPlanDomain" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_EmployeeStockOwnershipPlanESOPPlanDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOwnershipPlanESOPPlanDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresByPlanAxis" xlink:to="us-gaap_EmployeeStockOwnershipPlanESOPPlanDomain_0" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_EmployeeStockPurchasePlanMember" xlink:href="oiim-20151231.xsd#oiim_EmployeeStockPurchasePlanMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EmployeeStockOwnershipPlanESOPPlanDomain" xlink:to="oiim_EmployeeStockPurchasePlanMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_MinimumMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RangeMember" xlink:to="us-gaap_MinimumMember" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_MaximumMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RangeMember" xlink:to="us-gaap_MaximumMember" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_EmployeeStockOptionMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="us-gaap_EmployeeStockOptionMember" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsFairValueAssumptionsofStockOptionsandESOPLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsFairValueAssumptionsofStockOptionsandESOPLineItems" xlink:to="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsFairValueAssumptionsofStockOptionsandESOPLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate" order="3" xbrldt:closed="true"/>    
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/RSUsActivityTable">     
    <loc xlink:type="locator" xlink:label="oiim_Note15StockbasedCompensationDetailsRSUsActivityLineItems" xlink:href="oiim-20151231.xsd#oiim_Note15StockbasedCompensationDetailsRSUsActivityLineItems"/> 
    <loc xlink:type="locator" xlink:label="oiim_Note15StockbasedCompensationDetailsRSUsActivityTable" xlink:href="oiim-20151231.xsd#oiim_Note15StockbasedCompensationDetailsRSUsActivityTable"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note15StockbasedCompensationDetailsRSUsActivityLineItems" xlink:to="oiim_Note15StockbasedCompensationDetailsRSUsActivityTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_AwardTypeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note15StockbasedCompensationDetailsRSUsActivityTable" xlink:to="us-gaap_AwardTypeAxis" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_RestrictedStockUnitsRSUMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="us-gaap_RestrictedStockUnitsRSUMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsRSUsActivityLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsRSUsActivityLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue" order="2" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsRSUsActivityLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod" order="3" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsRSUsActivityLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" order="4" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsRSUsActivityLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod" order="5" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsRSUsActivityLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue" order="6" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsRSUsActivityLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod" order="7" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsRSUsActivityLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue" order="8" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/OrdinarySharesReservedforFutureIssuanceTable">  
    <loc xlink:type="locator" xlink:label="us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresLineItems" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresLineItems"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfEmployeeStockOwnershipPlanESOPDisclosuresTable" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfEmployeeStockOwnershipPlanESOPDisclosuresTable"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresLineItems" xlink:to="us-gaap_ScheduleOfEmployeeStockOwnershipPlanESOPDisclosuresTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_AwardTypeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfEmployeeStockOwnershipPlanESOPDisclosuresTable" xlink:to="us-gaap_AwardTypeAxis" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_EmployeeStockOptionMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="us-gaap_EmployeeStockOptionMember" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_RestrictedStockUnitsRSUMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="us-gaap_RestrictedStockUnitsRSUMember" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_StockCompensationPlanMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockCompensationPlanMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="us-gaap_StockCompensationPlanMember" order="2" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="oiim_EmployeeStockPurchasePlanMember" xlink:href="oiim-20151231.xsd#oiim_EmployeeStockPurchasePlanMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="oiim_EmployeeStockPurchasePlanMember" order="3" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_ShareReservedForAwardsMember" xlink:href="oiim-20151231.xsd#oiim_ShareReservedForAwardsMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="oiim_ShareReservedForAwardsMember" order="4" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_CommonStockCapitalSharesReservedForFutureIssuance" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresLineItems" xlink:to="us-gaap_CommonStockCapitalSharesReservedForFutureIssuance" order="1" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/BasicandDilutedEarningsLossPerShareTable">   
    <loc xlink:type="locator" xlink:label="oiim_BasicAndDilutedEarningsLossPerShareAbstract" xlink:href="oiim-20151231.xsd#oiim_BasicAndDilutedEarningsLossPerShareAbstract"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeLossFromContinuingOperations" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromContinuingOperations"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_BasicAndDilutedEarningsLossPerShareAbstract" xlink:to="us-gaap_IncomeLossFromContinuingOperations" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_BasicAndDilutedEarningsLossPerShareAbstract" xlink:to="us-gaap_IncomeLossFromDiscontinuedOperationsNetOfTaxAttributableToReportingEntity" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_NetIncomeLoss" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NetIncomeLoss"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_BasicAndDilutedEarningsLossPerShareAbstract" xlink:to="us-gaap_NetIncomeLoss" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_BasicAndDilutedEarningsLossPerShareAbstract" xlink:to="us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" order="3" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_EffectOfDilutiveSecuritiesAbstract" xlink:href="oiim-20151231.xsd#oiim_EffectOfDilutiveSecuritiesAbstract"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_BasicAndDilutedEarningsLossPerShareAbstract" xlink:to="oiim_EffectOfDilutiveSecuritiesAbstract" order="4" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_BasicAndDilutedEarningsLossPerShareAbstract" xlink:to="us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" order="5" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_LossPerShareBasicAndDilutedAbstract" xlink:href="oiim-20151231.xsd#oiim_LossPerShareBasicAndDilutedAbstract"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_BasicAndDilutedEarningsLossPerShareAbstract" xlink:to="oiim_LossPerShareBasicAndDilutedAbstract" order="6" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeLossFromContinuingOperationsPerBasicAndDilutedShare" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsPerBasicAndDilutedShare"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_LossPerShareBasicAndDilutedAbstract" xlink:to="us-gaap_IncomeLossFromContinuingOperationsPerBasicAndDilutedShare" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_EarningsPerShareBasicAndDiluted" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EarningsPerShareBasicAndDiluted"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_LossPerShareBasicAndDilutedAbstract" xlink:to="us-gaap_EarningsPerShareBasicAndDiluted" order="1" xbrldt:closed="true"/> 
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/FutureMinimumLeasePaymentsforAllNoncancelableOperatingLeasesTable">   
    <loc xlink:type="locator" xlink:label="oiim_FutureMinimumLeasePaymentsForAllNoncancelableOperatingLeasesAbstract" xlink:href="oiim-20151231.xsd#oiim_FutureMinimumLeasePaymentsForAllNoncancelableOperatingLeasesAbstract"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_FutureMinimumLeasePaymentsForAllNoncancelableOperatingLeasesAbstract" xlink:to="us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_FutureMinimumLeasePaymentsForAllNoncancelableOperatingLeasesAbstract" xlink:to="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_FutureMinimumLeasePaymentsForAllNoncancelableOperatingLeasesAbstract" xlink:to="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears" order="2" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_FutureMinimumLeasePaymentsForAllNoncancelableOperatingLeasesAbstract" xlink:to="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears" order="3" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_FutureMinimumLeasePaymentsForAllNoncancelableOperatingLeasesAbstract" xlink:to="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears" order="4" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDue"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_FutureMinimumLeasePaymentsForAllNoncancelableOperatingLeasesAbstract" xlink:to="us-gaap_OperatingLeasesFutureMinimumPaymentsDue" order="5" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/PurchaseObligationsandCommitmentsTable"> 
    <loc xlink:type="locator" xlink:label="oiim_PurchaseObligationsAndCommitmentsAbstract" xlink:href="oiim-20151231.xsd#oiim_PurchaseObligationsAndCommitmentsAbstract"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ContractualObligationDueInNextTwelveMonths" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ContractualObligationDueInNextTwelveMonths"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_PurchaseObligationsAndCommitmentsAbstract" xlink:to="us-gaap_ContractualObligationDueInNextTwelveMonths" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ContractualObligationDueInSecondYear" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ContractualObligationDueInSecondYear"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_PurchaseObligationsAndCommitmentsAbstract" xlink:to="us-gaap_ContractualObligationDueInSecondYear" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ContractualObligation" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ContractualObligation"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ContractualObligationDueInSecondYear" xlink:to="us-gaap_ContractualObligation" order="0" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/FinancialInstrumentsTable">   
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueByBalanceSheetGroupingTable" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems" xlink:to="us-gaap_FairValueByBalanceSheetGroupingTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueByMeasurementBasisAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueByMeasurementBasisAxis"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_FairValueByBalanceSheetGroupingTable" xlink:to="us-gaap_FairValueByMeasurementBasisAxis" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueDisclosureItemAmountsDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FairValueByMeasurementBasisAxis" xlink:to="us-gaap_FairValueDisclosureItemAmountsDomain" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueDisclosureItemAmountsDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueDisclosureItemAmountsDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FairValueByMeasurementBasisAxis" xlink:to="us-gaap_FairValueDisclosureItemAmountsDomain_0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_CarryingReportedAmountFairValueDisclosureMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CarryingReportedAmountFairValueDisclosureMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueDisclosureItemAmountsDomain" xlink:to="us-gaap_CarryingReportedAmountFairValueDisclosureMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_EstimateOfFairValueFairValueDisclosureMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EstimateOfFairValueFairValueDisclosureMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueDisclosureItemAmountsDomain" xlink:to="us-gaap_EstimateOfFairValueFairValueDisclosureMember" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_AssetsAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetsAbstract"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems" xlink:to="us-gaap_AssetsAbstract" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AssetsAbstract" xlink:to="us-gaap_CashAndCashEquivalentsAtCarryingValue" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AssetsAbstract" xlink:to="us-gaap_CashAndCashEquivalentsFairValueDisclosure" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_RestrictedCashAndCashEquivalents" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalents"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AssetsAbstract" xlink:to="us-gaap_RestrictedCashAndCashEquivalents" order="2" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ShortTermInvestments" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShortTermInvestments"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AssetsAbstract" xlink:to="us-gaap_ShortTermInvestments" order="3" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/SummaryofOperatingSegmentNetSalesandOperatingIncomeLossTable">   
    <loc xlink:type="locator" xlink:label="us-gaap_SegmentReportingInformationLineItems" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentReportingInformationLineItems"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_SegmentReportingInformationLineItems" xlink:to="us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_StatementBusinessSegmentsAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:to="us-gaap_StatementBusinessSegmentsAxis" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_SegmentDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementBusinessSegmentsAxis" xlink:to="us-gaap_SegmentDomain" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_SegmentDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementBusinessSegmentsAxis" xlink:to="us-gaap_SegmentDomain_0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_IntergratedCircuitGroupMember" xlink:href="oiim-20151231.xsd#oiim_IntergratedCircuitGroupMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentDomain" xlink:to="oiim_IntergratedCircuitGroupMember" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_NetworkSecurityGroupMember" xlink:href="oiim-20151231.xsd#oiim_NetworkSecurityGroupMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentDomain" xlink:to="oiim_NetworkSecurityGroupMember" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="oiim_NetSalesAbstract" xlink:href="oiim-20151231.xsd#oiim_NetSalesAbstract"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentReportingInformationLineItems" xlink:to="oiim_NetSalesAbstract" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_SalesRevenueGoodsNet" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SalesRevenueGoodsNet"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentReportingInformationLineItems" xlink:to="us-gaap_SalesRevenueGoodsNet" order="2" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="oiim_LossFromOperationsAbstract" xlink:href="oiim-20151231.xsd#oiim_LossFromOperationsAbstract"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentReportingInformationLineItems" xlink:to="oiim_LossFromOperationsAbstract" order="3" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_OperatingIncomeLoss" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingIncomeLoss"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentReportingInformationLineItems" xlink:to="us-gaap_OperatingIncomeLoss" order="4" xbrldt:closed="true"/>   
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/SummaryofNetSalestoUnaffiliatedCustomersbyGeographicRegionTable"> 
    <loc xlink:type="locator" xlink:label="oiim_Note20SegmentInformationDetailsSummaryofNetSalestoUnaffiliatedCustomersbyGeographicRegionLineItems" xlink:href="oiim-20151231.xsd#oiim_Note20SegmentInformationDetailsSummaryofNetSalestoUnaffiliatedCustomersbyGeographicRegionLineItems"/>     
    <loc xlink:type="locator" xlink:label="oiim_Note20SegmentInformationDetailsSummaryofNetSalestoUnaffiliatedCustomersbyGeographicRegionTable" xlink:href="oiim-20151231.xsd#oiim_Note20SegmentInformationDetailsSummaryofNetSalestoUnaffiliatedCustomersbyGeographicRegionTable"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note20SegmentInformationDetailsSummaryofNetSalestoUnaffiliatedCustomersbyGeographicRegionLineItems" xlink:to="oiim_Note20SegmentInformationDetailsSummaryofNetSalestoUnaffiliatedCustomersbyGeographicRegionTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_StatementGeographicalAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementGeographicalAxis"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note20SegmentInformationDetailsSummaryofNetSalestoUnaffiliatedCustomersbyGeographicRegionTable" xlink:to="us-gaap_StatementGeographicalAxis" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_SegmentGeographicalDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentGeographicalDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementGeographicalAxis" xlink:to="us-gaap_SegmentGeographicalDomain" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_SegmentGeographicalDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentGeographicalDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementGeographicalAxis" xlink:to="us-gaap_SegmentGeographicalDomain_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="country_CN" xlink:href="http://xbrl.sec.gov/country/2016/country-2016-01-31.xsd#country_CN"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentGeographicalDomain" xlink:to="country_CN" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="country_JP" xlink:href="http://xbrl.sec.gov/country/2016/country-2016-01-31.xsd#country_JP"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentGeographicalDomain" xlink:to="country_JP" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="country_TW" xlink:href="http://xbrl.sec.gov/country/2016/country-2016-01-31.xsd#country_TW"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentGeographicalDomain" xlink:to="country_TW" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="country_SG" xlink:href="http://xbrl.sec.gov/country/2016/country-2016-01-31.xsd#country_SG"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentGeographicalDomain" xlink:to="country_SG" order="3" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="country_KR" xlink:href="http://xbrl.sec.gov/country/2016/country-2016-01-31.xsd#country_KR"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentGeographicalDomain" xlink:to="country_KR" order="4" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_OtherCountriesMember" xlink:href="oiim-20151231.xsd#oiim_OtherCountriesMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentGeographicalDomain" xlink:to="oiim_OtherCountriesMember" order="5" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_Revenues" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Revenues"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note20SegmentInformationDetailsSummaryofNetSalestoUnaffiliatedCustomersbyGeographicRegionLineItems" xlink:to="us-gaap_Revenues" order="1" xbrldt:closed="true"/> 
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/PercentageofNetSalestoMajorCustomerTable">   
    <loc xlink:type="locator" xlink:label="us-gaap_ConcentrationRiskLineItems" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskLineItems"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ConcentrationRiskTable" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTable"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ConcentrationRiskLineItems" xlink:to="us-gaap_ConcentrationRiskTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_MajorCustomersAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MajorCustomersAxis"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="us-gaap_MajorCustomersAxis" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_NameOfMajorCustomerDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NameOfMajorCustomerDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_MajorCustomersAxis" xlink:to="us-gaap_NameOfMajorCustomerDomain" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_NameOfMajorCustomerDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NameOfMajorCustomerDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_MajorCustomersAxis" xlink:to="us-gaap_NameOfMajorCustomerDomain_0" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="us-gaap_ConcentrationRiskByBenchmarkAxis" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ConcentrationRiskBenchmarkDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:to="us-gaap_ConcentrationRiskBenchmarkDomain" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ConcentrationRiskBenchmarkDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:to="us-gaap_ConcentrationRiskBenchmarkDomain_0" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ConcentrationRiskByTypeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ConcentrationRiskTable" xlink:to="us-gaap_ConcentrationRiskByTypeAxis" order="2" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ConcentrationRiskTypeDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ConcentrationRiskByTypeAxis" xlink:to="us-gaap_ConcentrationRiskTypeDomain" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ConcentrationRiskTypeDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ConcentrationRiskByTypeAxis" xlink:to="us-gaap_ConcentrationRiskTypeDomain_0" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_SalesRevenueGoodsNetMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SalesRevenueGoodsNetMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskBenchmarkDomain" xlink:to="us-gaap_SalesRevenueGoodsNetMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_CustomerConcentrationRiskMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CustomerConcentrationRiskMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskTypeDomain" xlink:to="us-gaap_CustomerConcentrationRiskMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_CustomerAMember" xlink:href="oiim-20151231.xsd#oiim_CustomerAMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NameOfMajorCustomerDomain" xlink:to="oiim_CustomerAMember" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_CustomerBMember" xlink:href="oiim-20151231.xsd#oiim_CustomerBMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NameOfMajorCustomerDomain" xlink:to="oiim_CustomerBMember" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_CustomerCMember" xlink:href="oiim-20151231.xsd#oiim_CustomerCMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_NameOfMajorCustomerDomain" xlink:to="oiim_CustomerCMember" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ConcentrationRiskPercentage1" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskPercentage1"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskLineItems" xlink:to="us-gaap_ConcentrationRiskPercentage1" order="1" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/SummaryofLongLivedAssetsbyPhysicalLocationTable">     
    <loc xlink:type="locator" xlink:label="oiim_Note20SegmentInformationDetailsSummaryofLongLivedAssetsbyPhysicalLocationLineItems" xlink:href="oiim-20151231.xsd#oiim_Note20SegmentInformationDetailsSummaryofLongLivedAssetsbyPhysicalLocationLineItems"/>   
    <loc xlink:type="locator" xlink:label="oiim_Note20SegmentInformationDetailsSummaryofLongLivedAssetsbyPhysicalLocationTable" xlink:href="oiim-20151231.xsd#oiim_Note20SegmentInformationDetailsSummaryofLongLivedAssetsbyPhysicalLocationTable"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note20SegmentInformationDetailsSummaryofLongLivedAssetsbyPhysicalLocationLineItems" xlink:to="oiim_Note20SegmentInformationDetailsSummaryofLongLivedAssetsbyPhysicalLocationTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_StatementGeographicalAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementGeographicalAxis"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note20SegmentInformationDetailsSummaryofLongLivedAssetsbyPhysicalLocationTable" xlink:to="us-gaap_StatementGeographicalAxis" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_SegmentGeographicalDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentGeographicalDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementGeographicalAxis" xlink:to="us-gaap_SegmentGeographicalDomain" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_SegmentGeographicalDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentGeographicalDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementGeographicalAxis" xlink:to="us-gaap_SegmentGeographicalDomain_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="country_TW" xlink:href="http://xbrl.sec.gov/country/2016/country-2016-01-31.xsd#country_TW"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentGeographicalDomain" xlink:to="country_TW" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="country_CN" xlink:href="http://xbrl.sec.gov/country/2016/country-2016-01-31.xsd#country_CN"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentGeographicalDomain" xlink:to="country_CN" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="country_US" xlink:href="http://xbrl.sec.gov/country/2016/country-2016-01-31.xsd#country_US"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentGeographicalDomain" xlink:to="country_US" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_OtherCountriesMember" xlink:href="oiim-20151231.xsd#oiim_OtherCountriesMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentGeographicalDomain" xlink:to="oiim_OtherCountriesMember" order="3" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentNet" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note20SegmentInformationDetailsSummaryofLongLivedAssetsbyPhysicalLocationLineItems" xlink:to="us-gaap_PropertyPlantAndEquipmentNet" order="1" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note2SummaryofSignificantAccountingPoliciesDetails">   
    <loc xlink:type="locator" xlink:label="oiim_Note2SummaryofSignificantAccountingPoliciesDetailsLineItems" xlink:href="oiim-20151231.xsd#oiim_Note2SummaryofSignificantAccountingPoliciesDetailsLineItems"/>  
    <loc xlink:type="locator" xlink:label="oiim_Note2SummaryofSignificantAccountingPoliciesDetailsTable" xlink:href="oiim-20151231.xsd#oiim_Note2SummaryofSignificantAccountingPoliciesDetailsTable"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note2SummaryofSignificantAccountingPoliciesDetailsLineItems" xlink:to="oiim_Note2SummaryofSignificantAccountingPoliciesDetailsTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_RangeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note2SummaryofSignificantAccountingPoliciesDetailsTable" xlink:to="us-gaap_RangeAxis" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_RangeMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_RangeAxis" xlink:to="us-gaap_RangeMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_RangeMember_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_RangeAxis" xlink:to="us-gaap_RangeMember_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note2SummaryofSignificantAccountingPoliciesDetailsTable" xlink:to="us-gaap_PropertyPlantAndEquipmentByTypeAxis" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:to="us-gaap_PropertyPlantAndEquipmentTypeDomain" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentTypeDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:to="us-gaap_PropertyPlantAndEquipmentTypeDomain_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_MinimumMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RangeMember" xlink:to="us-gaap_MinimumMember" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_MaximumMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RangeMember" xlink:to="us-gaap_MaximumMember" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_BuildingAndBuildingImprovementsMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BuildingAndBuildingImprovementsMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:to="us-gaap_BuildingAndBuildingImprovementsMember" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_EquipmentMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquipmentMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:to="us-gaap_EquipmentMember" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_FurnitureAndFixturesMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FurnitureAndFixturesMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:to="us-gaap_FurnitureAndFixturesMember" order="2" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_LeaseholdImprovementsMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LeaseholdImprovementsMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:to="us-gaap_LeaseholdImprovementsMember" order="3" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_TransportationEquipmentMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_TransportationEquipmentMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:to="us-gaap_TransportationEquipmentMember" order="4" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_AvailableForSaleSecurities" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecurities"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note2SummaryofSignificantAccountingPoliciesDetailsLineItems" xlink:to="us-gaap_AvailableForSaleSecurities" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentUsefulLife" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note2SummaryofSignificantAccountingPoliciesDetailsLineItems" xlink:to="us-gaap_PropertyPlantAndEquipmentUsefulLife" order="2" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_MarketingAndAdvertisingExpense" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MarketingAndAdvertisingExpense"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note2SummaryofSignificantAccountingPoliciesDetailsLineItems" xlink:to="us-gaap_MarketingAndAdvertisingExpense" order="3" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_AdvertisingExpense" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AdvertisingExpense"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note2SummaryofSignificantAccountingPoliciesDetailsLineItems" xlink:to="us-gaap_AdvertisingExpense" order="4" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note3DiscontinuedOperationsandExitActivitiesDetails">    
    <loc xlink:type="locator" xlink:label="oiim_Note3DiscontinuedOperationsandExitActivitiesDetailsLineItems" xlink:href="oiim-20151231.xsd#oiim_Note3DiscontinuedOperationsandExitActivitiesDetailsLineItems"/>    
    <loc xlink:type="locator" xlink:label="oiim_Note3DiscontinuedOperationsandExitActivitiesDetailsTable" xlink:href="oiim-20151231.xsd#oiim_Note3DiscontinuedOperationsandExitActivitiesDetailsTable"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note3DiscontinuedOperationsandExitActivitiesDetailsLineItems" xlink:to="oiim_Note3DiscontinuedOperationsandExitActivitiesDetailsTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_NatureOfExpenseAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NatureOfExpenseAxis"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note3DiscontinuedOperationsandExitActivitiesDetailsTable" xlink:to="us-gaap_NatureOfExpenseAxis" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_InterimPeriodCostsNotAllocableDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterimPeriodCostsNotAllocableDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_NatureOfExpenseAxis" xlink:to="us-gaap_InterimPeriodCostsNotAllocableDomain" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_InterimPeriodCostsNotAllocableDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterimPeriodCostsNotAllocableDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_NatureOfExpenseAxis" xlink:to="us-gaap_InterimPeriodCostsNotAllocableDomain_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_StatementBusinessSegmentsAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note3DiscontinuedOperationsandExitActivitiesDetailsTable" xlink:to="us-gaap_StatementBusinessSegmentsAxis" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_SegmentDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementBusinessSegmentsAxis" xlink:to="us-gaap_SegmentDomain" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_SegmentDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementBusinessSegmentsAxis" xlink:to="us-gaap_SegmentDomain_0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_LossOnAssetWriteOffMember" xlink:href="oiim-20151231.xsd#oiim_LossOnAssetWriteOffMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InterimPeriodCostsNotAllocableDomain" xlink:to="oiim_LossOnAssetWriteOffMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_OneTimeEmployeeTerminationBenefitsMember" xlink:href="oiim-20151231.xsd#oiim_OneTimeEmployeeTerminationBenefitsMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InterimPeriodCostsNotAllocableDomain" xlink:to="oiim_OneTimeEmployeeTerminationBenefitsMember" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_PropertyAndEquipmentMember" xlink:href="oiim-20151231.xsd#oiim_PropertyAndEquipmentMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InterimPeriodCostsNotAllocableDomain" xlink:to="oiim_PropertyAndEquipmentMember" order="2" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_DeferredChargesMember" xlink:href="oiim-20151231.xsd#oiim_DeferredChargesMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InterimPeriodCostsNotAllocableDomain" xlink:to="oiim_DeferredChargesMember" order="3" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_AccruedOneTimeTerminationBenefitsMember" xlink:href="oiim-20151231.xsd#oiim_AccruedOneTimeTerminationBenefitsMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InterimPeriodCostsNotAllocableDomain" xlink:to="oiim_AccruedOneTimeTerminationBenefitsMember" order="4" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_NetworkSecurityGroupMember" xlink:href="oiim-20151231.xsd#oiim_NetworkSecurityGroupMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentDomain" xlink:to="oiim_NetworkSecurityGroupMember" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_Revenues" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Revenues"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note3DiscontinuedOperationsandExitActivitiesDetailsLineItems" xlink:to="us-gaap_Revenues" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_OperatingExpenses" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_OperatingExpenses"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note3DiscontinuedOperationsandExitActivitiesDetailsLineItems" xlink:to="us-gaap_OperatingExpenses" order="2" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_BusinessExitCosts1" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessExitCosts1"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note3DiscontinuedOperationsandExitActivitiesDetailsLineItems" xlink:to="us-gaap_BusinessExitCosts1" order="3" xbrldt:closed="true"/>   
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note4FairValueMeasurementsDetails"> 
    <loc xlink:type="locator" xlink:label="oiim_Note4FairValueMeasurementsDetailsLineItems" xlink:href="oiim-20151231.xsd#oiim_Note4FairValueMeasurementsDetailsLineItems"/>   
    <loc xlink:type="locator" xlink:label="oiim_Note4FairValueMeasurementsDetailsTable" xlink:href="oiim-20151231.xsd#oiim_Note4FairValueMeasurementsDetailsTable"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note4FairValueMeasurementsDetailsLineItems" xlink:to="oiim_Note4FairValueMeasurementsDetailsTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note4FairValueMeasurementsDetailsTable" xlink:to="us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis" xlink:to="us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_IncomeStatementBalanceSheetAndAdditionalDisclosuresByDisposalGroupsIncludingDiscontinuedOperationsAxis" xlink:to="us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain_0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_NatureOfExpenseAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NatureOfExpenseAxis"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note4FairValueMeasurementsDetailsTable" xlink:to="us-gaap_NatureOfExpenseAxis" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_InterimPeriodCostsNotAllocableDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterimPeriodCostsNotAllocableDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_NatureOfExpenseAxis" xlink:to="us-gaap_InterimPeriodCostsNotAllocableDomain" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_InterimPeriodCostsNotAllocableDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterimPeriodCostsNotAllocableDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_NatureOfExpenseAxis" xlink:to="us-gaap_InterimPeriodCostsNotAllocableDomain_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueByAssetClassAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueByAssetClassAxis"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note4FairValueMeasurementsDetailsTable" xlink:to="us-gaap_FairValueByAssetClassAxis" order="2" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FairValueByAssetClassAxis" xlink:to="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FairValueByAssetClassAxis" xlink:to="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_0" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_PropertyAndEquipmentMember" xlink:href="oiim-20151231.xsd#oiim_PropertyAndEquipmentMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:to="oiim_PropertyAndEquipmentMember" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="oiim_DeferredChargesMember" xlink:href="oiim-20151231.xsd#oiim_DeferredChargesMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:to="oiim_DeferredChargesMember" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="oiim_IntelligentECommerceGroupMember" xlink:href="oiim-20151231.xsd#oiim_IntelligentECommerceGroupMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisposalGroupsIncludingDiscontinuedOperationsNameDomain" xlink:to="oiim_IntelligentECommerceGroupMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_AggregateWriteDownOfAssetsToFairValueMember" xlink:href="oiim-20151231.xsd#oiim_AggregateWriteDownOfAssetsToFairValueMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InterimPeriodCostsNotAllocableDomain" xlink:to="oiim_AggregateWriteDownOfAssetsToFairValueMember" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_BusinessExitCosts1" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BusinessExitCosts1"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note4FairValueMeasurementsDetailsLineItems" xlink:to="us-gaap_BusinessExitCosts1" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_AssetsFairValueDisclosure" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note4FairValueMeasurementsDetailsLineItems" xlink:to="us-gaap_AssetsFairValueDisclosure" order="2" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note6ShorttermInvestmentsDetails">     
    <loc xlink:type="locator" xlink:label="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DisclosureTextBlockSupplementAbstract"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_AvailableForSaleSecuritiesGrossRealizedGains" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesGrossRealizedGains"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:to="us-gaap_AvailableForSaleSecuritiesGrossRealizedGains" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_AvailableForSaleSecuritiesGrossRealizedLosses" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AvailableForSaleSecuritiesGrossRealizedLosses"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DisclosureTextBlockSupplementAbstract" xlink:to="us-gaap_AvailableForSaleSecuritiesGrossRealizedLosses" order="1" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note9LongtermInvestmentsDetails">    
    <loc xlink:type="locator" xlink:label="oiim_Note9LongtermInvestmentsDetailsLineItems" xlink:href="oiim-20151231.xsd#oiim_Note9LongtermInvestmentsDetailsLineItems"/>    
    <loc xlink:type="locator" xlink:label="oiim_Note9LongtermInvestmentsDetailsTable" xlink:href="oiim-20151231.xsd#oiim_Note9LongtermInvestmentsDetailsTable"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note9LongtermInvestmentsDetailsLineItems" xlink:to="oiim_Note9LongtermInvestmentsDetailsTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note9LongtermInvestmentsDetailsTable" xlink:to="us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis" xlink:to="us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_MajorTypesOfDebtAndEquitySecuritiesAxis" xlink:to="us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_SubsequentEventTypeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsequentEventTypeAxis"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note9LongtermInvestmentsDetailsTable" xlink:to="us-gaap_SubsequentEventTypeAxis" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_SubsequentEventTypeDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsequentEventTypeDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_SubsequentEventTypeAxis" xlink:to="us-gaap_SubsequentEventTypeDomain" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_SubsequentEventTypeDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsequentEventTypeDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_SubsequentEventTypeAxis" xlink:to="us-gaap_SubsequentEventTypeDomain_0" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="invest_InvestmentHoldingAxis" xlink:href="http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_InvestmentHoldingAxis"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note9LongtermInvestmentsDetailsTable" xlink:to="invest_InvestmentHoldingAxis" order="2" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="invest_InvestmentHoldingDomain" xlink:href="http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_InvestmentHoldingDomain"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="invest_InvestmentHoldingAxis" xlink:to="invest_InvestmentHoldingDomain" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="invest_InvestmentHoldingDomain_0" xlink:href="http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_InvestmentHoldingDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="invest_InvestmentHoldingAxis" xlink:to="invest_InvestmentHoldingDomain_0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_SubsequentEventMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SubsequentEventMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SubsequentEventTypeDomain" xlink:to="us-gaap_SubsequentEventMember" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_PreferredStockMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PreferredStockMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:to="us-gaap_PreferredStockMember" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_EquitySecuritiesMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EquitySecuritiesMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:to="us-gaap_EquitySecuritiesMember" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_CommonStockMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CommonStockMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_MajorTypesOfDebtAndEquitySecuritiesDomain" xlink:to="us-gaap_CommonStockMember" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_SigurdCaymanMember" xlink:href="oiim-20151231.xsd#oiim_SigurdCaymanMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_SigurdCaymanMember" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_XFABMember" xlink:href="oiim-20151231.xsd#oiim_XFABMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_XFABMember" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_PVEFMember" xlink:href="oiim-20151231.xsd#oiim_PVEFMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_PVEFMember" order="2" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_GEMMember" xlink:href="oiim-20151231.xsd#oiim_GEMMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_GEMMember" order="3" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_EMCMember" xlink:href="oiim-20151231.xsd#oiim_EMCMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_EMCMember" order="4" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_VerticilMember" xlink:href="oiim-20151231.xsd#oiim_VerticilMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_VerticilMember" order="5" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_EtrendMember" xlink:href="oiim-20151231.xsd#oiim_EtrendMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_EtrendMember" order="6" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="oiim_SinomosMember" xlink:href="oiim-20151231.xsd#oiim_SinomosMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_SinomosMember" order="7" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_SiGenMember" xlink:href="oiim-20151231.xsd#oiim_SiGenMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentHoldingDomain" xlink:to="oiim_SiGenMember" order="8" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_CostMethodInvestmentPurchasePrice" xlink:href="oiim-20151231.xsd#oiim_CostMethodInvestmentPurchasePrice"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLineItems" xlink:to="oiim_CostMethodInvestmentPurchasePrice" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLineItems" xlink:to="us-gaap_MinorityInterestOwnershipPercentageByNoncontrollingOwners" order="2" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_CostmethodInvestmentsOtherThanTemporaryImpairment" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CostmethodInvestmentsOtherThanTemporaryImpairment"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLineItems" xlink:to="us-gaap_CostmethodInvestmentsOtherThanTemporaryImpairment" order="3" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_InvestmentOwnedBalanceShares" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InvestmentOwnedBalanceShares"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLineItems" xlink:to="us-gaap_InvestmentOwnedBalanceShares" order="4" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_CostMethodInvestments" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CostMethodInvestments"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLineItems" xlink:to="us-gaap_CostMethodInvestments" order="5" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_MarketableSecuritiesRealizedGainLoss" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MarketableSecuritiesRealizedGainLoss"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLineItems" xlink:to="us-gaap_MarketableSecuritiesRealizedGainLoss" order="6" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_InvestmentOwnedValuePerUnit" xlink:href="oiim-20151231.xsd#oiim_InvestmentOwnedValuePerUnit"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLineItems" xlink:to="oiim_InvestmentOwnedValuePerUnit" order="7" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_StockRedeemedOrCalledDuringPeriodValue" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockRedeemedOrCalledDuringPeriodValue"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLineItems" xlink:to="us-gaap_StockRedeemedOrCalledDuringPeriodValue" order="8" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerShareUnfundedCommittments" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerShareUnfundedCommittments"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLineItems" xlink:to="us-gaap_FairValueInvestmentsEntitiesThatCalculateNetAssetValuePerShareUnfundedCommittments" order="9" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_CostMethodInvestmentPerShare" xlink:href="oiim-20151231.xsd#oiim_CostMethodInvestmentPerShare"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLineItems" xlink:to="oiim_CostMethodInvestmentPerShare" order="10" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_InvestmentPercentage" xlink:href="oiim-20151231.xsd#oiim_InvestmentPercentage"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLineItems" xlink:to="oiim_InvestmentPercentage" order="11" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_CostMethodInvestmentSaleOfShares" xlink:href="oiim-20151231.xsd#oiim_CostMethodInvestmentSaleOfShares"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLineItems" xlink:to="oiim_CostMethodInvestmentSaleOfShares" order="12" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_CostMethodInvestmentSaleOfSharesValue" xlink:href="oiim-20151231.xsd#oiim_CostMethodInvestmentSaleOfSharesValue"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLineItems" xlink:to="oiim_CostMethodInvestmentSaleOfSharesValue" order="13" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_WriteOffOutstandingPrepayments" xlink:href="oiim-20151231.xsd#oiim_WriteOffOutstandingPrepayments"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLineItems" xlink:to="oiim_WriteOffOutstandingPrepayments" order="14" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_InvestmentOwnedBalancePrincipalAmount" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InvestmentOwnedBalancePrincipalAmount"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note9LongtermInvestmentsDetailsLineItems" xlink:to="us-gaap_InvestmentOwnedBalancePrincipalAmount" order="15" xbrldt:closed="true"/>   
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note10PropertyandEquipmentNetDetails">    
    <loc xlink:type="locator" xlink:label="oiim_Note10PropertyandEquipmentNetDetailsLineItems" xlink:href="oiim-20151231.xsd#oiim_Note10PropertyandEquipmentNetDetailsLineItems"/>    
    <loc xlink:type="locator" xlink:label="oiim_Note10PropertyandEquipmentNetDetailsTable" xlink:href="oiim-20151231.xsd#oiim_Note10PropertyandEquipmentNetDetailsTable"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsLineItems" xlink:to="oiim_Note10PropertyandEquipmentNetDetailsTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsTable" xlink:to="us-gaap_PropertyPlantAndEquipmentByTypeAxis" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:to="us-gaap_PropertyPlantAndEquipmentTypeDomain" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentTypeDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_PropertyPlantAndEquipmentByTypeAxis" xlink:to="us-gaap_PropertyPlantAndEquipmentTypeDomain_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_NatureOfExpenseAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NatureOfExpenseAxis"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsTable" xlink:to="us-gaap_NatureOfExpenseAxis" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_InterimPeriodCostsNotAllocableDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterimPeriodCostsNotAllocableDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_NatureOfExpenseAxis" xlink:to="us-gaap_InterimPeriodCostsNotAllocableDomain" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_InterimPeriodCostsNotAllocableDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_InterimPeriodCostsNotAllocableDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_NatureOfExpenseAxis" xlink:to="us-gaap_InterimPeriodCostsNotAllocableDomain_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="oiim_IntelligentPowerGroupMember" xlink:href="oiim-20151231.xsd#oiim_IntelligentPowerGroupMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InterimPeriodCostsNotAllocableDomain" xlink:to="oiim_IntelligentPowerGroupMember" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_BuildingMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_BuildingMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PropertyPlantAndEquipmentTypeDomain" xlink:to="us-gaap_BuildingMember" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_Depreciation" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_Depreciation"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsLineItems" xlink:to="us-gaap_Depreciation" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_AssetImpairmentCharges" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AssetImpairmentCharges"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsLineItems" xlink:to="us-gaap_AssetImpairmentCharges" order="2" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_RealEstateInvestmentPropertyAtCost" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RealEstateInvestmentPropertyAtCost"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsLineItems" xlink:to="us-gaap_RealEstateInvestmentPropertyAtCost" order="3" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_DeferredGainOnSaleOfProperty" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredGainOnSaleOfProperty"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsLineItems" xlink:to="us-gaap_DeferredGainOnSaleOfProperty" order="4" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_GainLossOnSaleOfPropertyPlantEquipment" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsLineItems" xlink:to="us-gaap_GainLossOnSaleOfPropertyPlantEquipment" order="5" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_NumberOfPropertyPlantAndEquipmentUnitsLeasedToOthers" xlink:href="oiim-20151231.xsd#oiim_NumberOfPropertyPlantAndEquipmentUnitsLeasedToOthers"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsLineItems" xlink:to="oiim_NumberOfPropertyPlantAndEquipmentUnitsLeasedToOthers" order="6" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="oiim_NumberOfPropertyPlantAndEquipmentUnitsSoldToOthers" xlink:href="oiim-20151231.xsd#oiim_NumberOfPropertyPlantAndEquipmentUnitsSoldToOthers"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note10PropertyandEquipmentNetDetailsLineItems" xlink:to="oiim_NumberOfPropertyPlantAndEquipmentUnitsSoldToOthers" order="7" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note11OtherAssetsDetails">  
    <loc xlink:type="locator" xlink:label="oiim_Note11OtherAssetsDetailsLineItems" xlink:href="oiim-20151231.xsd#oiim_Note11OtherAssetsDetailsLineItems"/>     
    <loc xlink:type="locator" xlink:label="oiim_Note11OtherAssetsDetailsTable" xlink:href="oiim-20151231.xsd#oiim_Note11OtherAssetsDetailsTable"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note11OtherAssetsDetailsLineItems" xlink:to="oiim_Note11OtherAssetsDetailsTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note11OtherAssetsDetailsTable" xlink:to="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:to="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:to="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_RangeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note11OtherAssetsDetailsTable" xlink:to="us-gaap_RangeAxis" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_RangeMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_RangeAxis" xlink:to="us-gaap_RangeMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_RangeMember_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_RangeAxis" xlink:to="us-gaap_RangeMember_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note11OtherAssetsDetailsTable" xlink:to="us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_LegalEntityTypeOfCounterpartyDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LegalEntityTypeOfCounterpartyDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis" xlink:to="us-gaap_LegalEntityTypeOfCounterpartyDomain" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_LegalEntityTypeOfCounterpartyDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LegalEntityTypeOfCounterpartyDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_AccountsNotesLoansAndFinancingReceivablesByLegalEntityOfCounterpartyTypeAxis" xlink:to="us-gaap_LegalEntityTypeOfCounterpartyDomain_0" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_ConsultantAndMaintenanceContractsMember" xlink:href="oiim-20151231.xsd#oiim_ConsultantAndMaintenanceContractsMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="oiim_ConsultantAndMaintenanceContractsMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_LandUseRightsMember" xlink:href="oiim-20151231.xsd#oiim_LandUseRightsMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="oiim_LandUseRightsMember" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_IntelligentECommerceGroupMember" xlink:href="oiim-20151231.xsd#oiim_IntelligentECommerceGroupMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LegalEntityTypeOfCounterpartyDomain" xlink:to="oiim_IntelligentECommerceGroupMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_MinimumMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RangeMember" xlink:to="us-gaap_MinimumMember" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_MaximumMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RangeMember" xlink:to="us-gaap_MaximumMember" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_FiniteLivedIntangibleAssetUsefulLife" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note11OtherAssetsDetailsLineItems" xlink:to="us-gaap_FiniteLivedIntangibleAssetUsefulLife" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_AmortizationOfDeferredCharges" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AmortizationOfDeferredCharges"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note11OtherAssetsDetailsLineItems" xlink:to="us-gaap_AmortizationOfDeferredCharges" order="2" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_GainLossOnSalesOfAssetsAndAssetImpairmentCharges" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_GainLossOnSalesOfAssetsAndAssetImpairmentCharges"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note11OtherAssetsDetailsLineItems" xlink:to="us-gaap_GainLossOnSalesOfAssetsAndAssetImpairmentCharges" order="3" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_LandUseRightsTerm" xlink:href="oiim-20151231.xsd#oiim_LandUseRightsTerm"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note11OtherAssetsDetailsLineItems" xlink:to="oiim_LandUseRightsTerm" order="4" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_AmortizationOfIntangibleAssets" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note11OtherAssetsDetailsLineItems" xlink:to="us-gaap_AmortizationOfIntangibleAssets" order="5" xbrldt:closed="true"/>   
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note13IncomeTaxDetails">     
    <loc xlink:type="locator" xlink:label="oiim_Note13IncomeTaxDetailsLineItems" xlink:href="oiim-20151231.xsd#oiim_Note13IncomeTaxDetailsLineItems"/> 
    <loc xlink:type="locator" xlink:label="oiim_Note13IncomeTaxDetailsTable" xlink:href="oiim-20151231.xsd#oiim_Note13IncomeTaxDetailsTable"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note13IncomeTaxDetailsLineItems" xlink:to="oiim_Note13IncomeTaxDetailsTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeTaxAuthorityAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note13IncomeTaxDetailsTable" xlink:to="us-gaap_IncomeTaxAuthorityAxis" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeTaxAuthorityDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_IncomeTaxAuthorityAxis" xlink:to="us-gaap_IncomeTaxAuthorityDomain" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeTaxAuthorityDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_IncomeTaxAuthorityAxis" xlink:to="us-gaap_IncomeTaxAuthorityDomain_0" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_CaymanIslandsMember" xlink:href="oiim-20151231.xsd#oiim_CaymanIslandsMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeTaxAuthorityDomain" xlink:to="oiim_CaymanIslandsMember" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_DomesticCountryMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DomesticCountryMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeTaxAuthorityDomain" xlink:to="us-gaap_DomesticCountryMember" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_StateAndLocalJurisdictionMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StateAndLocalJurisdictionMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeTaxAuthorityDomain" xlink:to="us-gaap_StateAndLocalJurisdictionMember" order="2" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_IncomeTaxExpenseBenefitContinuingOperationsDiscontinuedOperationsExtraordinaryItems" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_IncomeTaxExpenseBenefitContinuingOperationsDiscontinuedOperationsExtraordinaryItems"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note13IncomeTaxDetailsLineItems" xlink:to="us-gaap_IncomeTaxExpenseBenefitContinuingOperationsDiscontinuedOperationsExtraordinaryItems" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsForeign" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsForeign"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note13IncomeTaxDetailsLineItems" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsForeign" order="2" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note13IncomeTaxDetailsLineItems" xlink:to="us-gaap_ValuationAllowanceDeferredTaxAssetChangeInAmount" order="3" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note13IncomeTaxDetailsLineItems" xlink:to="us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch" order="4" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_DeferredTaxLiabilityWithholdingTaxesOnRepatriationOfSubsidiaryProfits" xlink:href="oiim-20151231.xsd#oiim_DeferredTaxLiabilityWithholdingTaxesOnRepatriationOfSubsidiaryProfits"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note13IncomeTaxDetailsLineItems" xlink:to="oiim_DeferredTaxLiabilityWithholdingTaxesOnRepatriationOfSubsidiaryProfits" order="5" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note14RetirementandPensionPlansDetails"> 
    <loc xlink:type="locator" xlink:label="us-gaap_CompensationAndRetirementDisclosureAbstract" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CompensationAndRetirementDisclosureAbstract"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_DefinedContributionPlanCostRecognized" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_DefinedContributionPlanCostRecognized"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_CompensationAndRetirementDisclosureAbstract" xlink:to="us-gaap_DefinedContributionPlanCostRecognized" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_DefinedBenefitPlanContributionsByEmployerPercentageMinimum" xlink:href="oiim-20151231.xsd#oiim_DefinedBenefitPlanContributionsByEmployerPercentageMinimum"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_CompensationAndRetirementDisclosureAbstract" xlink:to="oiim_DefinedBenefitPlanContributionsByEmployerPercentageMinimum" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_DefinedBenefitPlanContributionsByEmployerMaximum" xlink:href="oiim-20151231.xsd#oiim_DefinedBenefitPlanContributionsByEmployerMaximum"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_CompensationAndRetirementDisclosureAbstract" xlink:to="oiim_DefinedBenefitPlanContributionsByEmployerMaximum" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_DefinedBenefitPlanContributionsByEmployerPercentageCurrent" xlink:href="oiim-20151231.xsd#oiim_DefinedBenefitPlanContributionsByEmployerPercentageCurrent"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_CompensationAndRetirementDisclosureAbstract" xlink:to="oiim_DefinedBenefitPlanContributionsByEmployerPercentageCurrent" order="3" xbrldt:closed="true"/> 
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note15StockbasedCompensationDetails">   
    <loc xlink:type="locator" xlink:label="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:href="oiim-20151231.xsd#oiim_Note15StockbasedCompensationDetailsLineItems"/>  
    <loc xlink:type="locator" xlink:label="oiim_Note15StockbasedCompensationDetailsTable" xlink:href="oiim-20151231.xsd#oiim_Note15StockbasedCompensationDetailsTable"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="oiim_Note15StockbasedCompensationDetailsTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_RangeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note15StockbasedCompensationDetailsTable" xlink:to="us-gaap_RangeAxis" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_RangeMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_RangeAxis" xlink:to="us-gaap_RangeMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_RangeMember_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_RangeAxis" xlink:to="us-gaap_RangeMember_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_AwardTypeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AwardTypeAxis"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note15StockbasedCompensationDetailsTable" xlink:to="us-gaap_AwardTypeAxis" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_AwardTypeAxis" xlink:to="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueByMeasurementFrequencyAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note15StockbasedCompensationDetailsTable" xlink:to="us-gaap_FairValueByMeasurementFrequencyAxis" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueMeasurementFrequencyDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FairValueByMeasurementFrequencyAxis" xlink:to="us-gaap_FairValueMeasurementFrequencyDomain" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_FairValueMeasurementFrequencyDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FairValueByMeasurementFrequencyAxis" xlink:to="us-gaap_FairValueMeasurementFrequencyDomain_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_PlanNameAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PlanNameAxis"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note15StockbasedCompensationDetailsTable" xlink:to="us-gaap_PlanNameAxis" order="3" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_PlanNameDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PlanNameDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_PlanNameAxis" xlink:to="us-gaap_PlanNameDomain" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_PlanNameDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PlanNameDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_PlanNameAxis" xlink:to="us-gaap_PlanNameDomain_0" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_AnnualIncreaseMember" xlink:href="oiim-20151231.xsd#oiim_AnnualIncreaseMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementFrequencyDomain" xlink:to="oiim_AnnualIncreaseMember" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_PurchasePlan1999Member" xlink:href="oiim-20151231.xsd#oiim_PurchasePlan1999Member"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PlanNameDomain" xlink:to="oiim_PurchasePlan1999Member" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_PurchasePlan2009Member" xlink:href="oiim-20151231.xsd#oiim_PurchasePlan2009Member"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PlanNameDomain" xlink:to="oiim_PurchasePlan2009Member" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_StockPlan1997Member" xlink:href="oiim-20151231.xsd#oiim_StockPlan1997Member"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PlanNameDomain" xlink:to="oiim_StockPlan1997Member" order="2" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_StockIncentivePlan1999Member" xlink:href="oiim-20151231.xsd#oiim_StockIncentivePlan1999Member"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PlanNameDomain" xlink:to="oiim_StockIncentivePlan1999Member" order="3" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_ShareOptionPlan2005Member" xlink:href="oiim-20151231.xsd#oiim_ShareOptionPlan2005Member"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PlanNameDomain" xlink:to="oiim_ShareOptionPlan2005Member" order="4" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="oiim_ShareIncentivePlan2005Member" xlink:href="oiim-20151231.xsd#oiim_ShareIncentivePlan2005Member"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PlanNameDomain" xlink:to="oiim_ShareIncentivePlan2005Member" order="5" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_MaximumMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RangeMember" xlink:to="us-gaap_MaximumMember" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_RestrictedStockUnitsRSUMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:to="us-gaap_RestrictedStockUnitsRSUMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_ShareBasedCompensationArrangementByShareBasedPaymentAwardMinimumEmployeeSubscriptionRate" xlink:href="oiim-20151231.xsd#oiim_ShareBasedCompensationArrangementByShareBasedPaymentAwardMinimumEmployeeSubscriptionRate"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="oiim_ShareBasedCompensationArrangementByShareBasedPaymentAwardMinimumEmployeeSubscriptionRate" order="3" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="oiim_ShareBasedCompensationArrangementByShareBasedPaymentAwardEmployeeSubscriptionRateMaximum" xlink:href="oiim-20151231.xsd#oiim_ShareBasedCompensationArrangementByShareBasedPaymentAwardEmployeeSubscriptionRateMaximum"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="oiim_ShareBasedCompensationArrangementByShareBasedPaymentAwardEmployeeSubscriptionRateMaximum" order="4" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardDiscountFromMarketPriceOfferingDate" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardDiscountFromMarketPriceOfferingDate"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardDiscountFromMarketPriceOfferingDate" order="5" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardDiscountFromMarketPricePurchaseDate" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardDiscountFromMarketPricePurchaseDate"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardDiscountFromMarketPricePurchaseDate" order="6" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1" order="7" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans" order="8" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross" order="9" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant" order="10" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingPeriodIncreaseDecreasePercentage" xlink:href="oiim-20151231.xsd#oiim_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingPeriodIncreaseDecreasePercentage"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="oiim_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingPeriodIncreaseDecreasePercentage" order="11" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber" order="12" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber" order="13" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" order="14" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue" order="15" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate" order="16" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" order="17" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" order="18" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestExercisableWeightedAverageRemainingContractualTerm1" order="19" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue" order="20" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note15StockbasedCompensationDetailsLineItems" xlink:to="us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlansIncludingStockOptions" order="21" xbrldt:closed="true"/>   
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note16EarningsLossPerShareDetails"> 
    <loc xlink:type="locator" xlink:label="oiim_Note16EarningsLossPerShareDetailsLineItems" xlink:href="oiim-20151231.xsd#oiim_Note16EarningsLossPerShareDetailsLineItems"/>   
    <loc xlink:type="locator" xlink:label="oiim_Note16EarningsLossPerShareDetailsTable" xlink:href="oiim-20151231.xsd#oiim_Note16EarningsLossPerShareDetailsTable"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note16EarningsLossPerShareDetailsLineItems" xlink:to="oiim_Note16EarningsLossPerShareDetailsTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note16EarningsLossPerShareDetailsTable" xlink:to="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_AntidilutiveSecuritiesNameDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:to="us-gaap_AntidilutiveSecuritiesNameDomain" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_AntidilutiveSecuritiesNameDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis" xlink:to="us-gaap_AntidilutiveSecuritiesNameDomain_0" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_EmployeeStockOptionMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_EmployeeStockOptionMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AntidilutiveSecuritiesNameDomain" xlink:to="us-gaap_EmployeeStockOptionMember" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_RestrictedStockUnitsRSUMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AntidilutiveSecuritiesNameDomain" xlink:to="us-gaap_RestrictedStockUnitsRSUMember" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note16EarningsLossPerShareDetailsLineItems" xlink:to="us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note16EarningsLossPerShareDetailsLineItems" xlink:to="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeLowerRangeLimit" order="2" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note16EarningsLossPerShareDetailsLineItems" xlink:to="us-gaap_ShareBasedCompensationSharesAuthorizedUnderStockOptionPlansExercisePriceRangeUpperRangeLimit" order="3" xbrldt:closed="true"/>    
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note17CommitmentsDetails">  
    <loc xlink:type="locator" xlink:label="oiim_Note17CommitmentsDetailsLineItems" xlink:href="oiim-20151231.xsd#oiim_Note17CommitmentsDetailsLineItems"/>     
    <loc xlink:type="locator" xlink:label="oiim_Note17CommitmentsDetailsTable" xlink:href="oiim-20151231.xsd#oiim_Note17CommitmentsDetailsTable"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note17CommitmentsDetailsLineItems" xlink:to="oiim_Note17CommitmentsDetailsTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_RangeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeAxis"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note17CommitmentsDetailsTable" xlink:to="us-gaap_RangeAxis" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_RangeMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_RangeAxis" xlink:to="us-gaap_RangeMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_RangeMember_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RangeMember"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_RangeAxis" xlink:to="us-gaap_RangeMember_0" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_MinimumMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MinimumMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RangeMember" xlink:to="us-gaap_MinimumMember" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_MaximumMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_MaximumMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RangeMember" xlink:to="us-gaap_MaximumMember" order="1" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_LeaseAndRentalExpense" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LeaseAndRentalExpense"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note17CommitmentsDetailsLineItems" xlink:to="us-gaap_LeaseAndRentalExpense" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_LongtermPurchaseCommitmentPeriod" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LongtermPurchaseCommitmentPeriod"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note17CommitmentsDetailsLineItems" xlink:to="us-gaap_LongtermPurchaseCommitmentPeriod" order="2" xbrldt:closed="true"/>     
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note18ContingenciesDetails">    
    <loc xlink:type="locator" xlink:label="oiim_Note18ContingenciesDetailsLineItems" xlink:href="oiim-20151231.xsd#oiim_Note18ContingenciesDetailsLineItems"/>    
    <loc xlink:type="locator" xlink:label="oiim_Note18ContingenciesDetailsTable" xlink:href="oiim-20151231.xsd#oiim_Note18ContingenciesDetailsTable"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note18ContingenciesDetailsLineItems" xlink:to="oiim_Note18ContingenciesDetailsTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_LitigationStatusAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LitigationStatusAxis"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note18ContingenciesDetailsTable" xlink:to="us-gaap_LitigationStatusAxis" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_LitigationStatusDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LitigationStatusDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_LitigationStatusAxis" xlink:to="us-gaap_LitigationStatusDomain" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_LitigationStatusDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LitigationStatusDomain"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_LitigationStatusAxis" xlink:to="us-gaap_LitigationStatusDomain_0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_LitigationCaseAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LitigationCaseAxis"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note18ContingenciesDetailsTable" xlink:to="us-gaap_LitigationCaseAxis" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_LitigationCaseTypeDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LitigationCaseTypeDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_LitigationCaseAxis" xlink:to="us-gaap_LitigationCaseTypeDomain" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_LitigationCaseTypeDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LitigationCaseTypeDomain"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_LitigationCaseAxis" xlink:to="us-gaap_LitigationCaseTypeDomain_0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_CounterpartyNameAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CounterpartyNameAxis"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note18ContingenciesDetailsTable" xlink:to="us-gaap_CounterpartyNameAxis" order="2" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_RepurchaseAgreementCounterpartyNameDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RepurchaseAgreementCounterpartyNameDomain"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_CounterpartyNameAxis" xlink:to="us-gaap_RepurchaseAgreementCounterpartyNameDomain" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_RepurchaseAgreementCounterpartyNameDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_RepurchaseAgreementCounterpartyNameDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_CounterpartyNameAxis" xlink:to="us-gaap_RepurchaseAgreementCounterpartyNameDomain_0" order="1" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="oiim_TradeSecretInfringementMember" xlink:href="oiim-20151231.xsd#oiim_TradeSecretInfringementMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LitigationCaseTypeDomain" xlink:to="oiim_TradeSecretInfringementMember" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_PatentInfringementMember" xlink:href="oiim-20151231.xsd#oiim_PatentInfringementMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LitigationCaseTypeDomain" xlink:to="oiim_PatentInfringementMember" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_PendingLitigationMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_PendingLitigationMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LitigationStatusDomain" xlink:to="us-gaap_PendingLitigationMember" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_SettledLitigationMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SettledLitigationMember"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LitigationStatusDomain" xlink:to="us-gaap_SettledLitigationMember" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="oiim_LegendsecInformationTechnologyMember" xlink:href="oiim-20151231.xsd#oiim_LegendsecInformationTechnologyMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RepurchaseAgreementCounterpartyNameDomain" xlink:to="oiim_LegendsecInformationTechnologyMember" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="oiim_NanjingAnalogChipTechSemiconductorMember" xlink:href="oiim-20151231.xsd#oiim_NanjingAnalogChipTechSemiconductorMember"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_RepurchaseAgreementCounterpartyNameDomain" xlink:to="oiim_NanjingAnalogChipTechSemiconductorMember" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_LossContingencyNumberOfDefendants" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LossContingencyNumberOfDefendants"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note18ContingenciesDetailsLineItems" xlink:to="us-gaap_LossContingencyNumberOfDefendants" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_LitigationSettlementAmount" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LitigationSettlementAmount"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note18ContingenciesDetailsLineItems" xlink:to="us-gaap_LitigationSettlementAmount" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_LossContingencyEstimateOfPossibleLoss" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_LossContingencyEstimateOfPossibleLoss"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note18ContingenciesDetailsLineItems" xlink:to="us-gaap_LossContingencyEstimateOfPossibleLoss" order="3" xbrldt:closed="true"/>  
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/Note20SegmentInformationDetails">    
    <loc xlink:type="locator" xlink:label="oiim_Note20SegmentInformationDetailsLineItems" xlink:href="oiim-20151231.xsd#oiim_Note20SegmentInformationDetailsLineItems"/>    
    <loc xlink:type="locator" xlink:label="oiim_Note20SegmentInformationDetailsTable" xlink:href="oiim-20151231.xsd#oiim_Note20SegmentInformationDetailsTable"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="oiim_Note20SegmentInformationDetailsLineItems" xlink:to="oiim_Note20SegmentInformationDetailsTable" order="0" xbrldt:contextElement="segment" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note20SegmentInformationDetailsTable" xlink:to="us-gaap_ConcentrationRiskByBenchmarkAxis" order="0" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ConcentrationRiskBenchmarkDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:to="us-gaap_ConcentrationRiskBenchmarkDomain" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ConcentrationRiskBenchmarkDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ConcentrationRiskByBenchmarkAxis" xlink:to="us-gaap_ConcentrationRiskBenchmarkDomain_0" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_ConcentrationRiskByTypeAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note20SegmentInformationDetailsTable" xlink:to="us-gaap_ConcentrationRiskByTypeAxis" order="1" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="us-gaap_ConcentrationRiskTypeDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ConcentrationRiskByTypeAxis" xlink:to="us-gaap_ConcentrationRiskTypeDomain" order="0" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="us-gaap_ConcentrationRiskTypeDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_ConcentrationRiskTypeDomain"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ConcentrationRiskByTypeAxis" xlink:to="us-gaap_ConcentrationRiskTypeDomain_0" order="1" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_StatementBusinessSegmentsAxis" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="oiim_Note20SegmentInformationDetailsTable" xlink:to="us-gaap_StatementBusinessSegmentsAxis" order="2" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_SegmentDomain" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementBusinessSegmentsAxis" xlink:to="us-gaap_SegmentDomain" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="us-gaap_SegmentDomain_0" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SegmentDomain"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementBusinessSegmentsAxis" xlink:to="us-gaap_SegmentDomain_0" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_SalesRevenueNetMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_SalesRevenueNetMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskBenchmarkDomain" xlink:to="us-gaap_SalesRevenueNetMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_IntergratedCircuitGroupMember" xlink:href="oiim-20151231.xsd#oiim_IntergratedCircuitGroupMember"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentDomain" xlink:to="oiim_IntergratedCircuitGroupMember" order="0" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="us-gaap_CustomerConcentrationRiskMember" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_CustomerConcentrationRiskMember"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ConcentrationRiskTypeDomain" xlink:to="us-gaap_CustomerConcentrationRiskMember" order="0" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="us-gaap_NumberOfReportableSegments" xlink:href="http://xbrl.fasb.org/us-gaap/2016/elts/us-gaap-2016-01-31.xsd#us-gaap_NumberOfReportableSegments"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note20SegmentInformationDetailsLineItems" xlink:to="us-gaap_NumberOfReportableSegments" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="oiim_NumberOfCustomers" xlink:href="oiim-20151231.xsd#oiim_NumberOfCustomers"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="oiim_Note20SegmentInformationDetailsLineItems" xlink:to="oiim_NumberOfCustomers" order="2" xbrldt:closed="true"/>    
  </definitionLink>     
  <definitionLink xlink:type="extended" xlink:role="http://www.o2micro.com/role/DocumentAndEntityInformation"> 
    <loc xlink:type="locator" xlink:label="dei_DocumentInformationLineItems" xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentInformationLineItems"/>   
    <loc xlink:type="locator" xlink:label="dei_EntityRegistrantName" xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityRegistrantName"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityRegistrantName" order="0" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="dei_TradingSymbol" xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_TradingSymbol"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_TradingSymbol" order="1" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="dei_DocumentType" xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentType"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_DocumentType" order="2" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="dei_CurrentFiscalYearEndDate" xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_CurrentFiscalYearEndDate"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_CurrentFiscalYearEndDate" order="3" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="dei_EntityCommonStockSharesOutstanding" xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityCommonStockSharesOutstanding"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityCommonStockSharesOutstanding" order="4" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="dei_EntityPublicFloat" xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityPublicFloat"/> 
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityPublicFloat" order="5" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="dei_AmendmentFlag" xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_AmendmentFlag"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_AmendmentFlag" order="6" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="dei_AmendmentDescription" xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_AmendmentDescription"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_AmendmentDescription" order="7" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="dei_EntityCentralIndexKey" xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityCentralIndexKey"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityCentralIndexKey" order="8" xbrldt:closed="true"/>    
    <loc xlink:type="locator" xlink:label="dei_EntityCurrentReportingStatus" xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityCurrentReportingStatus"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityCurrentReportingStatus" order="9" xbrldt:closed="true"/> 
    <loc xlink:type="locator" xlink:label="dei_EntityVoluntaryFilers" xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityVoluntaryFilers"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityVoluntaryFilers" order="10" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="dei_EntityFilerCategory" xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityFilerCategory"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityFilerCategory" order="11" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="dei_EntityWellKnownSeasonedIssuer" xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_EntityWellKnownSeasonedIssuer"/>     
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_EntityWellKnownSeasonedIssuer" order="12" xbrldt:closed="true"/>   
    <loc xlink:type="locator" xlink:label="dei_DocumentPeriodEndDate" xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentPeriodEndDate"/>    
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_DocumentPeriodEndDate" order="13" xbrldt:closed="true"/>     
    <loc xlink:type="locator" xlink:label="dei_DocumentFiscalYearFocus" xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentFiscalYearFocus"/>   
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_DocumentFiscalYearFocus" order="14" xbrldt:closed="true"/>  
    <loc xlink:type="locator" xlink:label="dei_DocumentFiscalPeriodFocus" xlink:href="http://xbrl.sec.gov/dei/2014/dei-2014-01-31.xsd#dei_DocumentFiscalPeriodFocus"/>  
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="dei_DocumentInformationLineItems" xlink:to="dei_DocumentFiscalPeriodFocus" order="15" xbrldt:closed="true"/>    
  </definitionLink>     
</linkbase>  


